-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
31 lines (26 loc) · 780 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
31 lines (26 loc) · 780 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
version: "3"
vars:
PROTO_DIR: api
GO_OUT_DIR: gen
tasks:
proto:clean:
cmds:
- |
if [ -d "{{.GO_OUT_DIR}}" ]; then
rm -rf "{{.GO_OUT_DIR}}"
echo "{{.GO_OUT_DIR}} directory has been cleared"
else
echo "{{.GO_OUT_DIR}} directory does not exist"
fi
deps:install:
cmds:
- go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@latest
- go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest
proto:gen:
cmds:
- bash scripts/gen_proto.sh
proto:gen:linux:
cmds:
- task: proto:gen