-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (53 loc) · 1.52 KB
/
Makefile
File metadata and controls
71 lines (53 loc) · 1.52 KB
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
# Default shell
SHELL := /bin/bash
# Default goal
.DEFAULT_GOAL := never
# Goals
.PHONY: audit
audit: audit_npm
.PHONY: audit_npm
audit_npm: ./node_modules ./package-lock.json
npm audit --audit-level info --include prod --include dev --include peer --include optional
.PHONY: check
check: lint audit
.PHONY: clean
clean:
rm -rf ./node_modules
rm -rf ./package-lock.json
.PHONY: development
development:
.PHONY: fix
fix: fix_eslint fix_prettier
.PHONY: fix_eslint
fix_eslint: ./node_modules/.bin/eslint ./eslint.config.js
./node_modules/.bin/eslint --fix .
.PHONY: fix_prettier
fix_prettier: ./node_modules/.bin/prettier ./prettier.config.js
./node_modules/.bin/prettier -w .
.PHONY: lint
lint: lint_eslint lint_prettier
.PHONY: lint_eslint
lint_eslint: ./node_modules/.bin/eslint ./eslint.config.js
./node_modules/.bin/eslint .
.PHONY: lint_prettier
lint_prettier: ./node_modules/.bin/prettier ./prettier.config.js
./node_modules/.bin/prettier -c .
.PHONY: local
local:
.PHONY: production
production:
.PHONY: staging
staging:
.PHONY: testing
testing:
# Dependencies
./node_modules ./node_modules/.bin/eslint ./node_modules/.bin/prettier: ./package-lock.json
npm install --install-links --include prod --include dev --include peer --include optional
touch ./package-lock.json
touch ./node_modules
touch ./node_modules/.bin/*
./package-lock.json: ./package.json
rm -rf ./node_modules
rm -rf ./package-lock.json
npm update --install-links --include prod --include dev --include peer --include optional
touch ./package-lock.json