diff options
author | Ivan Dolgov <ivan@dolgov.fi> | 2018-09-22 00:55:11 +0300 |
---|---|---|
committer | Ivan Dolgov <ivan@dolgov.fi> | 2018-09-22 00:55:11 +0300 |
commit | 05b6b72104206468b50743026981e9d3c4974c61 (patch) | |
tree | 176333ebef1b58b82cb4a17a3f7bd571455c4c7f /Makefile | |
parent | e2cf702d339d95600001f60993252b4d8054f6d6 (diff) | |
download | ickui-05b6b72104206468b50743026981e9d3c4974c61.tar.gz |
Configure initial setupivan/setup
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 33 |
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 |