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

github.com/nextcloud/external.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-12 14:52:43 +0300
committerJoas Schilling <coding@schilljs.com>2020-06-12 14:52:43 +0300
commit28fb524767f2a9aac8f66d7293c54d2c909c9a21 (patch)
tree683ba6c33592d4b2c483a72eedb68d0f7733c53a /Makefile
parent86e688ecc5b48a40f0cb746271b48e76c6533580 (diff)
Update makefile
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile38
1 files changed, 34 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a4ac0de..e2030e0 100644
--- a/Makefile
+++ b/Makefile
@@ -9,19 +9,49 @@ package_name=$(app_name)
cert_dir=$(HOME)/.nextcloud/certificates
version+=2.0.2
-all: appstore
+all: appstore build-js-production
+
+dev-setup: clean-dev npm-init
release: appstore create-tag
+build-js:
+ npm run dev
+
+build-js-production:
+ npm run build
+
+watch-js:
+ npm run watch
+
+test:
+ npm run test:unit
+
+lint:
+ npm run lint
+
+lint-fix:
+ npm run lint:fix
+
+npm-init:
+ npm install
+
+npm-update:
+ npm update
+
+clean:
+ rm -rf js/dist/*
+ rm -rf $(build_dir)
+
+clean-dev: clean
+ rm -rf node_modules
+
create-tag:
git tag -s -a v$(version) -m "Tagging the $(version) release."
git push origin v$(version)
js-templates:
handlebars -n OCA.External.Templates js/templates -f js/templates.js
-
-clean:
- rm -rf $(build_dir)
rm -rf node_modules
appstore: clean