]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add watch-css and watch-js + a global watch command
authorJohann-S <johann.servoire@gmail.com>
Fri, 28 Apr 2017 11:43:42 +0000 (13:43 +0200)
committerJohann-S <johann.servoire@gmail.com>
Sat, 29 Apr 2017 14:43:51 +0000 (16:43 +0200)
package.json

index 5440548a5f98e44ac528992d1e7625b2ddb7cf2f..7e9ee3c7502925c3ddcb76a46e56e5350a8825de 100644 (file)
@@ -54,7 +54,9 @@
     "release-zip": "cd dist/ && zip -r9 bootstrap-$npm_package_version-dist.zip * && shx mv bootstrap-$npm_package_version-dist.zip ..",
     "dist": "npm-run-all --parallel css js",
     "test": "npm-run-all dist js-test docs",
-    "watch": "nodemon -e scss -x \"npm run css && npm run css-docs\""
+    "watch-css": "nodemon --ignore js/ --ignore dist/ -e scss -x \"npm run css && npm run css-docs\"",
+    "watch-js": "nodemon --ignore scss/ --ignore js/dist/ --ignore dist/ -e js -x \"npm run js-compile\"",
+    "watch": "npm-run-all --parallel watch-css watch-js"
   },
   "style": "dist/css/bootstrap.css",
   "sass": "scss/bootstrap.scss",