summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-26 11:35:53 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-26 11:35:53 +0200
commita3c20365096b56da157164ab7cdc5e6e03d6b09a (patch)
tree5d65f970cc16010893b7dd6c10ff73bc92a2d9d6 /Makefile
Vue example app
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..db96c676
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,46 @@
+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
+
+# Linting
+lint:
+ npm run lint
+
+lint-fix:
+ npm run lint:fix
+
+# Cleaning
+clean:
+ rm -f js/vueexample.js
+ rm -f js/vueexample.js.map
+
+clean-dev:
+ rm -rf node_modules
+