Support watch for cockpit development via make watch

This commit is contained in:
Bogdan Mustiata 2019-01-27 15:02:36 +01:00
parent 7b67b091f1
commit bc739ab19d
2 changed files with 4 additions and 0 deletions

View file

@ -66,6 +66,9 @@ dist/po.%.js: po/%.po $(NODE_MODULES_TEST)
$(WEBPACK_TEST): $(NODE_MODULES_TEST) $(shell find src/ -type f) package.json webpack.config.js $(patsubst %,dist/po.%.js,$(LINGUAS))
NODE_ENV=$(NODE_ENV) npm run build
watch:
NODE_ENV=$(NODE_ENV) npm run watch
clean:
rm -rf dist/
[ ! -e cockpit-$(PACKAGE_NAME).spec.in ] || rm -f cockpit-$(PACKAGE_NAME).spec

View file

@ -7,6 +7,7 @@
"author": "",
"license": "LGPL-2.1",
"scripts": {
"watch": "webpack -w",
"build": "webpack",
"eslint": "eslint --ext .jsx --ext .es6 src/",
"eslint:fix": "eslint --fix --ext .jsx --ext .es6 src/"