mirror of
https://github.com/MizuchiLabs/mantrae.git
synced 2025-12-16 11:54:51 -06:00
34 lines
809 B
YAML
34 lines
809 B
YAML
version: v2
|
|
clean: true
|
|
managed:
|
|
enabled: true
|
|
override:
|
|
- file_option: go_package_prefix
|
|
value: github.com/mizuchilabs/mantrae/proto/gen
|
|
disable:
|
|
- file_option: go_package
|
|
module: buf.build/bufbuild/protovalidate
|
|
plugins:
|
|
- protoc_builtin: go
|
|
out: proto/gen
|
|
opt: paths=source_relative
|
|
- local: protoc-gen-connect-go
|
|
out: proto/gen
|
|
opt: paths=source_relative
|
|
- local: protoc-gen-es
|
|
out: web/src/lib/gen
|
|
opt: target=ts
|
|
include_imports: true
|
|
- local: protoc-gen-connect-openapi
|
|
out: server/internal/api/server/openapi
|
|
strategy: all
|
|
opt:
|
|
- features=connectrpc;google.api.http;protovalidate
|
|
- allow-get
|
|
- with-streaming
|
|
- format=json
|
|
- path=openapi.json
|
|
- base=openapi.yaml
|
|
inputs:
|
|
- directory: proto
|