-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
74 lines (57 loc) · 1.07 KB
/
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.PHONY: all
all: init lint build cover
.PHONY: github-ci
github-ci: init lint test
.PHONY: init
init:
npm clean-install
.PHONY: format
format:
./scripts/annotate-deprecated.bash
./scripts/docs_format.sh
npm run format
.PHONY: lock
lock:
npm install --package-lock-only
.PHONY: clean
clean:
-rm -rf built dist node_modules coverage
.PHONY: build
build:
npm run prepare
.PHONY: npm-test
npm-test:
npm test
.PHONY: test
test: npm-test example
.PHONY: cover
cover:
npm run cover
.PHONY: lint
lint:
npm run lint
.PHONY: update
update:
npm run check-updates
npm update
npm outdated || true
npm install --package-lock-only
.PHONY: check-git
check-git:
git fetch --depth 1 origin
git diff origin/main --exit-code
.PHONY: publish
publish: clean init test check-git
npm publish
.PHONY: publish-docker
publish-docker: init test
npm publish
.PHONY: example
example:
./scripts/extract_js_from_README.sh > "example.js"
./scripts/run_example.sh
.PHONY: insert-example
insert-example:
./scripts/insert-example.bash
.PHONY: after-gen
after-gen: format lock insert-example