use watchify to reduce re-build times

This commit is contained in:
Martin Hermant 2018-10-15 12:12:31 +02:00
parent e2440baf73
commit 5453d76cc0
2 changed files with 33 additions and 6 deletions

View file

@ -68,10 +68,15 @@
"build-js": "npm run build-launcher-js && npm run build-browser-js",
"build-browser-js": "node scripts/build-browser.js > app/browser/scripts.js",
"build-launcher-js": "node scripts/build-launcher.js > app/launcher/scripts.js",
"watch-browser" : "node scripts/build-browser.js --watch",
"watch-launcher" : "node scripts/build-launcher.js --watch",
"deploy-docs": "node scripts/build-widgets-reference.js > resources/docs/widgets-reference.md && cd resources && mkdocs gh-deploy --clean && rm -rf site",
"test": "npm run build"
},
"engines": {
"node": ">=6"
},
"devDependencies": {
"watchify": "^3.11.0"
}
}