-
Notifications
You must be signed in to change notification settings - Fork 185
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 853 Bytes
/
Makefile
File metadata and controls
39 lines (27 loc) · 853 Bytes
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
all: engine-dev
pnpm boot
pnpm run build
engine-dev: codegen
go mod tidy
go mod download
test-go:
go test ./...
test-ts:
pnpm test
test: test-go test-ts
format-templates:
pnpx prettier --write pkg/templates/assets/templates --ignore-unknown
install-proto:
go install github.com/golang/protobuf/proto
go install github.com/golang/protobuf/protoc-gen-go
codegen: install-proto
cd types && ./generate.sh
build: codegen
cd cmd/wunderctl && go build -o ../../wunderctl -ldflags "-w -s -X 'main.commit=$COMMIT' -X 'main.builtBy=ci' -X 'main.version=$VERSION' -X 'main.date=$DATE'" -trimpath
run:
cd cmd/wunderctl && go run main.go
install:
cd cmd/wunderctl && go install
update-examples:
cd examples && rm -rf simple && mkdir simple && cd simple && wunderctl init
.PHONY: codegen build run tag install-proto format-templates dev all