diff options
author | Joas Schilling <coding@schilljs.com> | 2018-07-06 13:16:25 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-07-06 14:39:27 +0300 |
commit | a77ce48bbc9dd56d8f5fcffd391a1db96531c063 (patch) | |
tree | 43d4bb3e08860e0ab0cf0ba925c964573369dfa5 /Makefile | |
parent | 650d516455f0f12a041883a5e0083ce28e7778d2 (diff) |
Streamline webpack with all other apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -5,12 +5,14 @@ build_dir=$(CURDIR)/build source_dir=$(build_dir)/$(app_name) sign_dir=$(build_dir)/sign -all: package +all: dev-setup build-js-production -dev-setup: clean npm-update build-js +dev-setup: clean clean-dev npm-init + +npm-init: + npm install npm-update: - rm -rf node_modules npm update build-js: @@ -19,10 +21,18 @@ build-js: build-js-production: npm run build +watch-js: + npm run watch + clean: + rm -f js/notifications.js + rm -f js/notifications.js.map rm -rf $(build_dir) -package: clean build-js-production +clean-dev: + rm -rf node_modules + +package: dev-setup build-js-production mkdir -p $(source_dir) rsync -a \ --exclude=/build \ |