-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
54 lines (41 loc) · 1.02 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
.PHONY: install-frontend
install-frontend:
cd web && npm install
.PHONY: install-frontend-ci
install-frontend-ci:
cd web && npm ci
.PHONY: install-frontend-ci-clean
install-frontend-ci-clean: install-frontend-ci
cd web && npm cache clean --force
.PHONY: build-frontend
build-frontend:
cd web && npm run build
.PHONY: start-frontend
start-frontend:
cd web && npm run start
.PHONY: start-console
start-console:
./scripts/start-console.sh
.PHONY: lint-frontend
lint-frontend:
cd web && npm run lint
.PHONY: install-backend
install-backend:
go mod download
.PHONY: test-unit-backend
test-unit-backend:
go test ./...
.PHONY: build-backend
build-backend:
go build -o plugin-backend cmd/plugin-backend.go
.PHONY: start-backend
start-backend:
go run ./cmd/plugin-backend.go
.PHONY: build-image
build-image:
./scripts/build-image.sh
.PHONY: install
install: install-frontend install-backend
.PHONY: example
example:
cd docs && oc apply -f prometheus-datasource-example.yaml && oc apply -f prometheus-dashboard-example.yaml