-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
41 lines (33 loc) · 814 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
node_modules: package-lock.json
npm install --no-save
@touch node_modules
.PHONY: deps
deps: node_modules
.PHONY: lint
lint: node_modules
npx eslint --color .
.PHONY: test
test: lint node_modules
npx vitest
.PHONY: publish
publish: node_modules
git push -u --tags origin master
npm publish
.PHONY: update
update: node_modules
npx updates -cu
rm package-lock.json
npm install
@touch node_modules
.PHONY: path
patch: node_modules lint test
npx versions patch package.json package-lock.json
@$(MAKE) --no-print-directory publish
.PHONY: minor
minor: node_modules lint test
npx versions minor package.json package-lock.json
@$(MAKE) --no-print-directory publish
.PHONY: major
major: node_modules lint test
npx versions major package.json package-lock.json
@$(MAKE) --no-print-directory publish