summaryrefslogtreecommitdiff
path: root/Makefile
blob: a6d5a2d3de9be82c88c8691b91f04daf6788ce41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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