-
Notifications
You must be signed in to change notification settings - Fork 1
/
buf.gen.yaml
71 lines (63 loc) · 1.35 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/junimohost/backend/gen/proto/go
except:
- buf.build/googleapis/googleapis
plugins:
# golang
- name: go
out: gen/proto/go
opt:
- paths=source_relative
- name: go-grpc
out: gen/proto/go
opt:
- paths=source_relative
# C
# - name: cpp
# out: gen/cpp
# - name: grpc-cpp
# out: gen/cpp
# path: grpc_cpp_plugin
# Gateway
# - name: grpc-gateway
# out: gen/go
# opt:
# - paths=source_relative
# - generate_unbound_methods=true
# python
# - name: python
# out: gen/python
# - name: python_grpc
# out: gen/python
# docs
- name: doc
out: docs
strategy: all
opt: markdown,API.md
# grpc-web
- name: js
out: gen/grpc-web
opt: import_style=commonjs
- name: grpc-web
out: gen/grpc-web
opt: import_style=typescript,mode=grpcwebtext
# c#
- name: csharp
out: gen/csharp
- name: grpc-csharp
out: gen/csharp
# nodejs/typescript
# https://slavovojacek.medium.com/grpc-on-node-js-with-buf-and-typescript-part-1-5aad61bab03b
# - name: js
# out: gen/nodejs
# opt: import_style=commonjs,binary
# - name: js-grpc
# out: gen/nodejs
# opt: grpc_js
# path: grpc_tools_node_protoc_plugin
# - name: ts
# out: gen/nodejs
# opt: grpc_js