diff options
author | Anike Arni <aarni@thoughtworks.com> | 2017-01-13 10:26:34 -0200 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-01-13 15:40:43 -0200 |
commit | 5c356adb417f1930e5b195ee430796dbdbc03568 (patch) | |
tree | 62ed445182faea6656eb0637dc694a312e5cc422 /web-ui | |
parent | 2eda5b64f2116eca618cb577a079aad61da5d20f (diff) |
Adds js to watch command so that dev is faster in js
Diffstat (limited to 'web-ui')
-rw-r--r-- | web-ui/package.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web-ui/package.json b/web-ui/package.json index 3d1720e1..480dcc55 100644 --- a/web-ui/package.json +++ b/web-ui/package.json @@ -48,7 +48,7 @@ "scripts": { "test": "npm run jshint --silent && npm run build --silent && karma start --single-run $GRUNT_OPTS", "debug": "npm run build && karma start --browsers Chrome $GRUNT_OPTS", - "watch": "npm run compass-watch & npm run handlebars-watch", + "watch": "npm run compass-watch & npm run handlebars-watch & npm run build-js-watch", "watch-test": "karma start", "handlebars": "mkdir -p app/js/generated/hbs/ && handlebars app/templates/**/*.hbs > app/js/generated/hbs/templates.js --namespace=window.Pixelated --root .", "handlebars-watch": "watch 'npm run handlebars' app/templates", @@ -58,6 +58,7 @@ "build-statics": "npm run clean && npm run handlebars && npm run add_git_version && npm run compass", "build-prod": "npm run build-statics && webpack -p --config ./webpack.production.config.js", "build-js": "webpack --colors --progress", + "build-js-watch": "webpack --colors --progress --watch", "jshint": "jshint --config=.jshintrc app test", "clean": "rm -rf dist/ app/js/generated/hbs/* app/css/*", "package": "PIXELATED_BUILD='package' npm run build-prod && npm run imagemin", |