chore: makefile
parent
5801d9ecca
commit
7259f75917
5
Makefile
5
Makefile
|
@ -4,8 +4,8 @@ SWAGGER_UI_VERSION:=v5.11.8
|
|||
install-tools:
|
||||
go install gotest.tools/gotestsum@v1.11.0
|
||||
go install github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION)
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
|
||||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.32
|
||||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3
|
||||
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.19.1
|
||||
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.19.1
|
||||
|
||||
|
@ -14,6 +14,7 @@ build: generate
|
|||
go build -o bin/server .
|
||||
|
||||
generate:
|
||||
find ./proto -type f -name "*.go" -delete # Delete existing Go generated files
|
||||
buf generate
|
||||
go generate ./...
|
||||
SWAGGER_UI_VERSION=$(SWAGGER_UI_VERSION) ./scripts/generate-swagger-ui.sh
|
||||
|
|
Loading…
Reference in New Issue