forked from johanbrandhorst/grpc-gateway-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
17 lines (14 loc) · 762 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
BUF_VERSION:=v1.28.1
SWAGGER_UI_VERSION:=v5.10.5
init:
test -d ./server/venv || python -m venv ./server/venv
./server/venv/bin/python -m pip install -r ./server/requirements.txt
generate: generate/proto generate/swagger-ui
generate/proto:
go run github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) generate --template buf.gen.go.yaml
go run github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) generate --template buf.gen.python.yaml --include-imports
generate/swagger-ui:
SWAGGER_UI_VERSION=$(SWAGGER_UI_VERSION) ./scripts/generate-swagger-ui.sh
lint:
go run github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) lint
go run github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION) breaking --against 'https://github.com/johanbrandhorst/grpc-gateway-boilerplate.git#branch=main'