Browse Source

Streamline the example watching

Steven Silvester 8 years ago
parent
commit
6f7be61724
3 changed files with 6 additions and 3 deletions
  1. 3 1
      examples/console/package.json
  2. 3 1
      examples/notebook/package.json
  3. 0 1
      package.json

+ 3 - 1
examples/console/package.json

@@ -5,7 +5,8 @@
     "build": "tsc --project src && webpack --config webpack.conf.js",
     "build": "tsc --project src && webpack --config webpack.conf.js",
     "clean": "rimraf build && rimraf node_modules",
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "npm dedupe",
     "postinstall": "npm dedupe",
-    "update": "rimraf node_modules/jupyter-js-notebook && npm install"
+    "update": "rimraf node_modules/jupyter-js-notebook && npm install",
+    "watch": "watch 'npm run update && npm run build' ../../src src --wait 10"
   },
   },
   "devDependencies": {
   "devDependencies": {
     "concurrently": "^2.0.0",
     "concurrently": "^2.0.0",
@@ -13,6 +14,7 @@
     "rimraf": "^2.5.2",
     "rimraf": "^2.5.2",
     "style-loader": "^0.13.1",
     "style-loader": "^0.13.1",
     "typescript": "^1.8.10",
     "typescript": "^1.8.10",
+    "watch": "^0.18.0",
     "webpack": "^1.13.0"
     "webpack": "^1.13.0"
   },
   },
   "dependencies": {
   "dependencies": {

+ 3 - 1
examples/notebook/package.json

@@ -5,7 +5,8 @@
     "build": "tsc --project src && webpack --config webpack.conf.js",
     "build": "tsc --project src && webpack --config webpack.conf.js",
     "clean": "rimraf build && rimraf node_modules",
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "npm dedupe",
     "postinstall": "npm dedupe",
-    "update": "rimraf node_modules/jupyter-js-notebook && npm install"
+    "update": "rimraf node_modules/jupyter-js-notebook && npm install",
+    "watch": "watch 'npm run update && npm run build' ../../src src --wait 10"
   },
   },
   "devDependencies": {
   "devDependencies": {
     "concurrently": "^2.0.0",
     "concurrently": "^2.0.0",
@@ -13,6 +14,7 @@
     "rimraf": "^2.5.2",
     "rimraf": "^2.5.2",
     "style-loader": "^0.13.1",
     "style-loader": "^0.13.1",
     "typescript": "^1.8.10",
     "typescript": "^1.8.10",
+    "watch": "^0.18.0",
     "webpack": "^1.13.0"
     "webpack": "^1.13.0"
   },
   },
   "dependencies": {
   "dependencies": {

+ 0 - 1
package.json

@@ -57,7 +57,6 @@
     "test:ie": "karma start --browsers=IE test/karma.conf.js",
     "test:ie": "karma start --browsers=IE test/karma.conf.js",
     "test:debug": "karma start --browsers=Chrome --singleRun=false --debug=true test/karma.conf.js",
     "test:debug": "karma start --browsers=Chrome --singleRun=false --debug=true test/karma.conf.js",
     "test": "npm run test:firefox",
     "test": "npm run test:firefox",
-    "watch:examples": "watch 'npm run build && npm run build:examples' src --wait 10",
     "watch": "watch 'npm run build' src"
     "watch": "watch 'npm run build' src"
   },
   },
   "repository": {
   "repository": {