-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathMakefile
52 lines (39 loc) · 1.07 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
default: build
.PHONY: clean
clean:
rm *.vsix || true
rm trivy-task/*.js || true
.PHONY: lint
lint:
cd ui && npm install -f && npm run lint
cd trivy-task && npm install -f && npm run lint
.PHONY: lint-fix
lint-fix:
cd ui && npm install -f && npm run lint:fix
cd trivy-task && npm install -f && npm run lint:fix
.PHONY: format
format:
cd ui && npm install -f && npm run format
cd trivy-task && npm install -f && npm run format
.PHONY: tidy
tidy: lint-fix format
.PHONY: build-ui
build-ui: clean
cd ui && npm install -f && npm run build
.PHONY: build-task
build-task: clean
cd trivy-task && npm install -f && npm run build
.PHONY: build
build: clean build-task build-ui
.PHONY: package
package: build
tfx extension create --manifest-globs vss-extension.json
.PHONY: package-dev
package-dev: build
tfx extension create --manifest-globs vss-extension.dev.json
.PHONY: local
local: build-task
cd trivy-task && INPUT_VERSION=v0.29.2 INPUT_PATH=. node index.js
.PHONY: local-image
local-image: build-task
cd trivy-task && INPUT_VERSION=v0.29.2 INPUT_IMAGE=ubuntu node index.js