Browse Source

Merge pull request #791 from blink1073/fix-watch

Fix watch scripts on Windows
Afshin Darian 8 years ago
parent
commit
f28d2a92c8

+ 1 - 1
examples/console/package.json

@@ -6,7 +6,7 @@
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "node ../../scripts/dedupe.js",
     "update": "rimraf node_modules/jupyterlab && npm install",
-    "watch": "watch 'npm run update && npm run build' ../../src src --wait 10"
+    "watch": "watch \"npm run update && npm run build\" ../../src src --wait 10"
   },
   "dependencies": {
     "jupyter-js-services": "^0.18.0",

+ 1 - 1
examples/filebrowser/package.json

@@ -6,7 +6,7 @@
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "node ../../scripts/dedupe.js",
     "update": "rimraf node_modules/jupyterlab && npm install",
-    "watch": "watch 'npm run update && npm run build' ../../src src --wait 10"
+    "watch": "watch \"npm run update && npm run build\" ../../src src --wait 10"
   },
   "dependencies": {
     "jupyter-js-services": "^0.18.0",

+ 1 - 1
examples/lab/package.json

@@ -6,7 +6,7 @@
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "node ../../scripts/dedupe.js",
     "update": "rimraf node_modules/jupyterlab && npm install",
-    "watch": "watch 'npm run update && npm run build' ../../src --wait 10"
+    "watch": "watch \"npm run update && npm run build\" ../../src --wait 10"
   },
   "dependencies": {
     "es6-promise": "^3.1.2",

+ 1 - 1
examples/notebook/package.json

@@ -6,7 +6,7 @@
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "node ../../scripts/dedupe.js",
     "update": "rimraf node_modules/jupyterlab && npm install",
-    "watch": "watch 'npm run update && npm run build' ../../src src --wait 10"
+    "watch": "watch \"npm run update && npm run build\" ../../src src --wait 10"
   },
   "dependencies": {
     "jupyter-js-services": "^0.18.0",

+ 1 - 1
examples/terminal/package.json

@@ -6,7 +6,7 @@
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "node ../../scripts/dedupe.js",
     "update": "rimraf node_modules/jupyterlab && npm install",
-    "watch": "watch 'npm run update && npm run build' ../../src src --wait 10"
+    "watch": "watch \"npm run update && npm run build\" ../../src src --wait 10"
   },
   "dependencies": {
     "jupyter-js-services": "^0.18.0",

+ 3 - 3
package.json

@@ -71,9 +71,9 @@
     "test:debug": "npm run build:test && karma start --browsers=Chrome --singleRun=false --debug=true test/karma.conf.js",
     "test:firefox": "npm run build:test && karma start --browsers=Firefox test/karma.conf.js",
     "test:ie": "npm run build:test && karma start --browsers=IE test/karma.conf.js",
-    "watch": "watch 'npm run build:all' src --wait 10",
-    "watch:src": "watch 'npm run build' src --wait 10",
-    "watch:test": "watch 'npm run build && npm test' src test/src --wait 10"
+    "watch": "watch \"npm run build:all\" src --wait 10",
+    "watch:src": "watch \"npm run build\" src --wait 10",
+    "watch:test": "watch \"npm run build && npm test\" src test/src --wait 10"
   },
   "repository": {
     "type": "git",