Prechádzať zdrojové kódy

Allow the
> jupyterlab-example-console@ update /Users/ssilvester/workspace/jupyter/lab/examples/console
> rimraf node_modules/jupyterlab || npm install commands to work without rimraf

Steven Silvester 8 rokov pred
rodič
commit
f2cba3d433

+ 1 - 1
examples/console/package.json

@@ -5,7 +5,7 @@
     "build": "tsc --project src && webpack --config webpack.conf.js",
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "node ../../scripts/dedupe.js && npm run build",
-    "update": "rimraf node_modules/jupyterlab && npm install",
+    "update": "rimraf node_modules/jupyterlab || npm install",
     "watch": "watch \"npm run update && npm run build\" ../../src src --wait 10"
   },
   "dependencies": {

+ 1 - 1
examples/filebrowser/package.json

@@ -5,7 +5,7 @@
     "build": "tsc --project src && webpack --config webpack.conf.js",
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "node ../../scripts/dedupe.js && npm run build",
-    "update": "rimraf node_modules/jupyterlab && npm install",
+    "update": "rimraf node_modules/jupyterlab || npm install",
     "watch": "watch \"npm run update && npm run build\" ../../src src --wait 10"
   },
   "dependencies": {

+ 1 - 1
examples/lab/package.json

@@ -5,7 +5,7 @@
     "build": "webpack --config webpack.conf.js",
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "node ../../scripts/dedupe.js && npm run build",
-    "update": "rimraf node_modules/jupyterlab && npm install",
+    "update": "rimraf node_modules/jupyterlab || npm install",
     "watch": "watch \"npm run update && npm run build\" ../../src --wait 10"
   },
   "dependencies": {

+ 1 - 1
examples/notebook/package.json

@@ -5,7 +5,7 @@
     "build": "tsc --project src && webpack --config webpack.conf.js",
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "node ../../scripts/dedupe.js && npm run build",
-    "update": "rimraf node_modules/jupyterlab && npm install",
+    "update": "rimraf node_modules/jupyterlab || npm install",
     "watch": "watch \"npm run update && npm run build\" ../../src src --wait 10"
   },
   "dependencies": {

+ 1 - 1
examples/terminal/package.json

@@ -5,7 +5,7 @@
     "build": "tsc --project src && webpack --config webpack.conf.js",
     "clean": "rimraf build && rimraf node_modules",
     "postinstall": "node ../../scripts/dedupe.js && npm run build",
-    "update": "rimraf node_modules/jupyterlab && npm install",
+    "update": "rimraf node_modules/jupyterlab || npm install",
     "watch": "watch \"npm run update && npm run build\" ../../src src --wait 10"
   },
   "dependencies": {