forked from wundergraph/wundergraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (29 loc) · 929 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
all: check-setup engine-dev
pnpm install
pnpm run build
engine-dev: codegen
go mod tidy
go mod download
check-setup:
$(shell ./scripts/check-setup.sh)
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 check-local