aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-05-26 21:41:36 -0700
committerMark Otto <[email protected]>2017-05-27 15:28:41 -0700
commit793e84400cec314198df38b6ae0a06e4711f72de (patch)
tree43719eff3fce0a57ab4cd80255c1118d3c679542 /package.json
parentdb44e4b311317ef760f8412cc33c84146959b248 (diff)
downloadbootstrap-793e84400cec314198df38b6ae0a06e4711f72de.tar.xz
bootstrap-793e84400cec314198df38b6ae0a06e4711f72de.zip
Add `docs-clean` task to watch scripts
Without this, the CSS and JS files don't get copied over to the `docs/dist/` folder during development. I imagine we can simplify this and not run it twice, and instead run it once? Unsure. /cc @johann-s
Diffstat (limited to 'package.json')
-rw-r--r--package.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json
index 881a5b806..9ee855d58 100644
--- a/package.json
+++ b/package.json
@@ -54,8 +54,8 @@
"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-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-css": "nodemon --ignore js/ --ignore dist/ -e scss -x \"npm run css && npm run css-docs && npm run docs-clean\"",
+ "watch-js": "nodemon --ignore scss/ --ignore js/dist/ --ignore dist/ -e js -x \"npm run js-compile && npm run docs-clean\"",
"watch": "npm-run-all --parallel watch-css watch-js"
},
"style": "dist/css/bootstrap.css",