summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a6d5a2d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+PATH:=${PATH}:node_modules/.bin
+
+all: run
+
+install:
+ npm install --no-optional
+
+reinstall: reset install
+
+lint:
+ eslint *.js src
+
+test: lint
+ jest
+ @echo "Full report: file://${PWD}/coverage/index.html"
+
+run:
+ webpack-dev-server --mode development
+
+build: clean test
+ webpack --mode production
+ cp src/index.html dist/
+
+clean:
+ find . -type f -name '*~' -exec rm -f {} \;
+ rm -rf dist coverage
+ jest --clearCache
+
+reset: clean
+ rm -rf node_modules
+ npm cache clean --force
+
+.PHONY: all install reinstall lint test run build clean reset