forked from hanksudo/prototool
/
prototool.yaml
35 lines (35 loc) · 1.16 KB
/
prototool.yaml
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
# if starting from scratch in development, run "make init example" to get/build the .gitignored files
protoc:
includes:
# note vendor is .gitignored
- ../../../vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
lint:
# run "prototool list-linters" to see the currently configured linters
# add "exclude_ids" to ignore specific linter IDs for all files
ignores:
- id: REQUEST_RESPONSE_TYPES_IN_SAME_FILE
files:
- foo/foo.proto
- id: REQUEST_RESPONSE_TYPES_UNIQUE
files:
- foo/foo.proto
generate:
go_options:
import_path: github.com/uber/prototool/example/idl/uber
extra_modifiers:
google/api/annotations.proto: google.golang.org/genproto/googleapis/api/annotations
google/api/http.proto: google.golang.org/genproto/googleapis/api/annotations
plugins:
- name: gogoslick
type: gogo
flags: plugins=grpc
output: ../../gen/proto/go
- name: yarpc-go
type: gogo
output: ../../gen/proto/go
# note ../../gen/proto/java is .gitignored
- name: java
output: ../../gen/proto/java
- name: grpc-gateway
type: go
output: ../../gen/proto/go