/
Makefile
57 lines (40 loc) · 794 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
55
56
57
##
##
## reducer-patterns
##
##
NPM=pnpm
TASKS=./tasks
default: help
## make help - display the help
##
help:
@grep "^##.*" ./Makefile
##
## make build - build the src and the docs
##
build:
bash $(TASKS)/build.bash
##
## make test - run all tests
## - use MOCHA to pass args to mocha,
## e.g. `make test MOCHA="--bail"`
## - use ESLINT to pass args to eslint,
## e.g. `make test ESLINT="..."`
##
test: test-mocha test-eslint
test-eslint:
ESLINT="$(ESLINT)" sh $(TASKS)/test-eslint.sh
test-mocha:
MOCHA="$(MOCHA)" sh $(TASKS)/test-mocha.sh
##
## make package-check - print out a pre-publish package check
##
package-check:
sh $(TASKS)/package-check.sh
## make package-publish - publish package on npm
##
package-publish:
sh $(TASKS)/package-publish.sh
##
##