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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-05-14 17:12:05 +0300
committerJulius Härtl <jus@bitgrid.net>2019-05-14 17:12:37 +0300
commite5711781cfe5aeb7e79ff50482394abecb74af7f (patch)
tree9ae2771bacdce9043503c7522993b5d425025301 /Makefile
parent7b1652351ce1b6b4c342fb7f817d3b68f0941f13 (diff)
Add makefile and let it pass
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile65
1 files changed, 65 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..82271f9c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,65 @@
+# This file is licensed under the Affero General Public License version 3 or
+# later. See the COPYING file.
+app_name=$(notdir $(CURDIR))
+
+all: dev-setup lint build-js-production test
+
+# Dev env management
+dev-setup: clean clean-dev npm-init
+
+npm-init:
+ npm install
+
+npm-update:
+ npm update
+
+# Building
+build-js:
+ npm run dev
+
+build-js-production:
+ npm run build
+
+watch-js:
+ npm run watch
+
+# Testing
+test:
+ npm run test
+
+test-watch:
+ npm run test:watch
+
+test-coverage:
+ npm run test:coverage
+
+test-cypress:
+ echo "Init server for $(app_name)"
+ ./cypress/start.sh $(app_name)
+ npm run cypress:gui
+ ./cypress/stop.sh $(app_name)
+
+test-cypress-kill:
+ ./cypress/stop.sh $(app_name)
+
+# Linting
+lint:
+ npm run lint
+
+lint-fix:
+ npm run lint:fix
+
+# Style linting
+stylelint:
+ npm run stylelint
+
+stylelint-fix:
+ npm run stylelint:fix
+
+# Cleaning
+clean:
+ rm -f js/*
+
+clean-dev:
+ rm -rf node_modules
+