-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (33 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
42
43
44
45
46
.PHONY: full build build-npm test test-npm lint lint-npm fix fix-npm watch watch-npm clean
SHELL=/bin/bash -o pipefail
$(shell git config core.hooksPath ops/git-hooks)
full: clean lint test build
## Build the project
build: build-npm
build-npm:
[ -d node_modules ] || npm install
npm run build
## Test the project
test: test-npm
test-npm:
[ -d node_modules ] || npm install
npm run test
## Lint the project
lint: lint-npm
lint-npm:
[ -d node_modules ] || npm install
npm run lint
## Fix the project
fix: fix-npm
fix-npm:
[ -d node_modules ] || npm install
npm run fix
## Watch the project
watch: build-npm
make -j1 watch-npm
watch-npm:
[ -d node_modules ] || npm install
npm run watch
## Clean the project
clean:
git clean -Xdff --exclude="!.env*local"