-
Notifications
You must be signed in to change notification settings - Fork 655
/
Makefile
57 lines (45 loc) · 1.12 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
node_modules: package-lock.json
npm install --no-save
@touch node_modules
.PHONY: test
test: lint
.PHONY: build
build: node_modules clean
node tools/build.js
.PHONY: deps
deps: node_modules
.PHONY: lint
lint: node_modules
npx eslint --color src/gen tools
npx stylelint --color src/**/*.css
.PHONY: lint-fix
lint-fix: node_modules
npx eslint --color src/gen tools --fix
npx stylelint --color src/**/*.css --fix
.PHONY: authors
authors:
bash tools/authors.sh
.PHONY: clean
clean: node_modules
node tools/clean.js
.PHONY: install
install: node_modules
node tools/install.js
.PHONY: update
update: node_modules
npx updates -cu
rm package-lock.json
npm install
@touch node_modules
.PHONY: patch
patch: node_modules test
npx versions -pd patch $(wildcard *.user.css) package.json package-lock.json
git push --tags origin master
.PHONY: minor
minor: node_modules test
npx versions -pd minor $(wildcard *.user.css) package.json package-lock.json
git push --tags origin master
.PHONY: major
major: node_modules test
npx versions -pd major $(wildcard *.user.css) package.json package-lock.json
git push --tags origin master