-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile
54 lines (43 loc) · 1014 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
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: default
default:
$(info Available Make Commands)
@awk -F: '/^[A-z\-_]+\:/ {print " - make " $$1}' Makefile | sort
.PHONY: all
all: clean install build test
$(info Task: all)
.PHONY: doctor
doctor: clean install build test
$(info TSK: doctor)
.PHONY: clean
clean:
$(info Task: clean)
$(info delete node_modules)
$(EXEC) sh -c 'rm -rf node_modules'
$(info delete dist)
$(EXEC) sh -c 'rm -rf dist'
.PHONY: install
install:
$(info Task: install)
$(EXEC) sh -c 'npm install || exit 255'
.PHONY: format
format:
$(info Task: format:check)
$(EXEC) sh -c 'npm run format:check:app || exit 255'
.PHONY: types
types:
$(info Task: types)
$(EXEC) sh -c 'npm run types || exit 255'
.PHONY: lint
lint:
$(info Task: lint)
$(EXEC) sh -c 'npm run lint || exit 255'
.PHONY: build
build:
$(info Task: build production)
$(EXEC) sh -c 'npm run build || exit 255'
.PHONY: test
test:
$(info Task: test)
$(EXEC) sh -c 'npm run test || exit 255'
.PHONY: ci
ci: clean install format types build test