Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-07-06 13:16:25 +0300
committerJoas Schilling <coding@schilljs.com>2018-07-06 14:39:27 +0300
commita77ce48bbc9dd56d8f5fcffd391a1db96531c063 (patch)
tree43d4bb3e08860e0ab0cf0ba925c964573369dfa5 /Makefile
parent650d516455f0f12a041883a5e0083ce28e7778d2 (diff)
Streamline webpack with all other apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7ac82b2..ac7ff3b 100644
--- a/Makefile
+++ b/Makefile
@@ -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 \