-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (35 loc) · 903 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
aio: all-in-one
all: ui-deps ui go
all-in-one: ui-deps ui go-dist
ldflags=-s -w -X github.com/strahe/curio-dashboard/version.CurrentCommit=$(shell git describe --tags --always --dirty 2>/dev/null || git rev-parse --short HEAD 2>/dev/null)
GOFLAGS+=-ldflags="$(ldflags)"
go:
go build $(GOFLAGS) -o curio-dashboard ./cmd
go-dist:
go build $(GOFLAGS) -o curio-dashboard -tags dist ./cmd
ui-deps:
cd ui && yarn install
ui:
cd ui && yarn build
.PHONY: ui
lint: golanglint uilint i18n-check
golanglint:
golangci-lint run -v ./...
uilint:
cd ui && yarn lint
i18n-check:
cd ui && yarn i18n:check
i18n-extract:
cd ui && yarn i18n:extract
curio-rpc-gen:
go run ./graph/curiorpc/gen
goimports -w graph/curiorpc
.PHONY: api-gen
type-gen:
cd ui && yarn type-gen
go-gen:
go generate ./...
gen: go-gen curio-rpc-gen type-gen
clean:
rm -f curio-dashboard
cd ui && rm -rf dist node_modules