refactor: update ts proto generator

This commit is contained in:
Steven
2023-09-20 21:28:36 +08:00
parent dd5cce63c5
commit a372d07c4b
62 changed files with 59 additions and 5110 deletions

View File

@ -19,11 +19,27 @@ plugins:
opt:
- paths=source_relative
# Generate types for the web client.
- plugin: buf.build/bufbuild/es:v1.3.0
- plugin: buf.build/community/stephenh-ts-proto:v1.152.1
out: ../frontend/web/src/types/proto
# reference: https://github.com/deeplay-io/nice-grpc/blob/master/packages/nice-grpc-web/README.md#using-ts-proto
opt:
- env=browser
- useOptionals=messages
- outputServices=generic-definitions
- outputJsonMethods=false
- useExactTypes=false
- esModuleInterop=true
# Generate types for the extension client.
- plugin: buf.build/bufbuild/es:v1.3.0
- plugin: buf.build/community/stephenh-ts-proto:v1.152.1
out: ../frontend/extension/src/types/proto
# reference: https://github.com/deeplay-io/nice-grpc/blob/master/packages/nice-grpc-web/README.md#using-ts-proto
opt:
- env=browser
- useOptionals=messages
- outputServices=generic-definitions
- outputJsonMethods=false
- useExactTypes=false
- esModuleInterop=true
- plugin: buf.build/community/pseudomuto-doc:v1.5.1
out: gen
opt: