-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
58 lines (43 loc) · 877 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.DEFAULT_GOAL := all
.PHONY: all
all: install lint build test sast
.PHONY: pre_commit
pre_commit: lint test_fast
.PHONY: install
install:
@pnpm install
.PHONY: lint
lint:
@pnpm run lint
.PHONY: format
format:
@pnpm run format
.PHONY: build
build:
@pnpm run clean && pnpm run build
.PHONY: test
test:
@pnpm run test --coverage
.PHONY: test_fast
test_fast:
@pnpm run test
.PHONY: publish
publish:
@pnpm publish --no-git-checks
.PHONY: local_publish
local_publish:
@pnpm run build && pnpm pack && tar -xvzf postcss-prefixwrap*.tgz && rm postcss-prefixwrap*.tgz
.PHONY: local_cleanup
local_cleanup:
@rm -rf ./package
.PHONY: upgrade
upgrade:
@pnpm dlx npm-check-updates --interactive && pnpm upgrade
.PHONY: sast
sast: sast_snyk sast_osv
.PHONY: sast_snyk
sast_snyk:
snyk test --all-projects --detection-depth=1
.PHONY: sast_osv
sast_osv:
osv-scanner ./