2023-04-04 15:23:14 +02:00
|
|
|
# buf.gen.yaml
|
|
|
|
|
version: v1
|
|
|
|
|
managed:
|
|
|
|
|
enabled: true
|
|
|
|
|
plugins:
|
|
|
|
|
- name: ts
|
|
|
|
|
strategy: all
|
|
|
|
|
path: node_modules/ts-proto/protoc-gen-ts_proto
|
2023-04-04 15:35:41 +02:00
|
|
|
out: proto/src/server
|
2023-04-04 15:23:14 +02:00
|
|
|
opt:
|
|
|
|
|
- esModuleInterop=true
|
|
|
|
|
- env=node
|
|
|
|
|
- outputServices=nice-grpc
|
|
|
|
|
- outputServices=generic-definitions
|
|
|
|
|
- useExactTypes=false
|
|
|
|
|
# - plugin: buf.build/protocolbuffers/js
|
|
|
|
|
# out: src/app/proto/generated
|
|
|
|
|
# opt: import_style=commonjs,binary
|
|
|
|
|
- plugin: buf.build/grpc/web
|
2023-04-04 15:35:41 +02:00
|
|
|
out: proto/src/client
|
2023-04-04 15:23:14 +02:00
|
|
|
opt: import_style=typescript,mode=grpcweb
|
|
|
|
|
# - plugin: buf.build/grpc-ecosystem/openapiv2
|
|
|
|
|
# out: src/app/proto/generated
|
|
|
|
|
# opt: allow_delete_body
|