-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 778 Bytes
/
Makefile
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
34
35
36
37
38
39
40
41
-include ./User.mk
-include ../User.mk
-include ~/User.mk
bold=$(tput bold)
endbold=$(tput sgr0)
.PHONY: all
all:test
.PHONY: test
test: ## run unit tests
npm test -- --watchAll=false
.PHONY: cover
cover: ## run code coverage
npm run coverage -- --watchAll=false
.PHONY: run
run: ## run in development mode
NODE_OPTIONS=--openssl-legacy-provider npm start
.PHONY: clean
clean: ## clean dependencies and build
rm -rf node_modules
rm -rf build
.PHONY: build
build: ## install dependencies
npm i
.PHONY: publish
publish: ## generate production build
npm run build
.PHONY: deploy
deploy: ## deploy to github page
echo 'TODO: copy build somewhere github page is hosted'
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'