forked from silverwind/updates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (32 loc) · 1 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
node_modules: package-lock.json
npm install --no-save
@touch node_modules
deps: node_modules
lint: node_modules
npx eslint --color .
test: node_modules lint build
NODE_OPTIONS="--experimental-vm-modules --no-warnings" npx jest --color
unittest: node_modules
NODE_OPTIONS="--experimental-vm-modules --no-warnings" npx jest --color --watchAll
build: node_modules
npx ncc build updates.js -q -m -o bin
mv bin/index.js bin/updates.js
chmod +x bin/updates.js
publish: node_modules
git push -u --tags origin master
npm publish
update: node_modules build
node bin/updates.js -cu
rm package-lock.json
npm install
@touch node_modules
patch: node_modules test
npx versions -Cc 'make build' patch
@$(MAKE) --no-print-directory publish
minor: node_modules test
npx versions -Cc 'make build' minor
@$(MAKE) --no-print-directory publish
major: node_modules test
npx versions -Cc 'make build' major
@$(MAKE) --no-print-directory publish
.PHONY: lint test unittest build publish deps update patch minor major