-
Notifications
You must be signed in to change notification settings - Fork 339
/
buf.gen.yaml
44 lines (43 loc) · 1.24 KB
/
buf.gen.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
36
37
38
39
40
41
42
43
44
version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/redpanda-data/console/backend/pkg/protogen
except:
- buf.build/googleapis/googleapis
- buf.build/grpc-ecosystem/grpc-gateway
- buf.build/bufbuild/protovalidate
- buf.build/envoyproxy/protoc-gen-validate
- buf.build/redpandadata/common
plugins:
# Go Plugins
- plugin: buf.build/protocolbuffers/go:v1.31.0
opt: paths=source_relative
out: backend/pkg/protogen
- plugin: buf.build/grpc/go:v1.3.0
opt: paths=source_relative
out: backend/pkg/protogen
- plugin: buf.build/connectrpc/go:v1.14.0
opt:
- paths=source_relative
- require_unimplemented_servers=false
out: backend/pkg/protogen
# Typescript plugins
- plugin: buf.build/bufbuild/es:v1.6.0
opt:
- target=ts
- import_extension=
out: frontend/src/protogen
- plugin: buf.build/connectrpc/es:v1.2.0
opt:
- target=ts
- import_extension=
out: frontend/src/protogen
- plugin: buf.build/grpc-ecosystem/gateway:v2.18.0
out: backend/pkg/protogen
opt:
- paths=source_relative
- generate_unbound_methods=true
- plugin: connect-gateway
out: backend/pkg/protogen
opt: paths=source_relative