60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
---
|
|
version: v2
|
|
clean: true
|
|
managed:
|
|
enabled: true
|
|
override:
|
|
- file_option: go_package_prefix
|
|
# FIXME: Change this to you're go.mod package name
|
|
value: github.com/nfel
|
|
plugins:
|
|
# NOTE: golang
|
|
# - remote: buf.build/grpc/go
|
|
# NOTE: grpc
|
|
# go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
|
- local: protoc-gen-go-grpc
|
|
out: stub/go
|
|
# NOTE: PB files
|
|
# go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
|
- local: protoc-gen-go
|
|
# - remote: buf.build/protocolbuffers/go:v1.30.0
|
|
out: stub/go
|
|
# NOTE: doc
|
|
- local: protoc-gen-doc
|
|
opt: html,index.html,source_relative
|
|
out: stub/doc/html
|
|
- local: protoc-gen-doc
|
|
opt: markdown,index.md,source_relative
|
|
out: stub/doc/md
|
|
# # NOTE: Gateway
|
|
# # - remote: buf.build/grpc-ecosystem/gateway:v2.16.2
|
|
# - local: protoc-gen-grpc-gateway
|
|
# out: stub/go
|
|
# # NOTE: SWAGGER json files
|
|
# # - remote: buf.build/grpc-ecosystem/openapiv2:v2.16.2
|
|
# - local: protoc-gen-openapiv2
|
|
# opt: import_prefix=github.com/nfel
|
|
# out: stub/go
|
|
# - local: protoc-gen-go-gin
|
|
# opt:
|
|
# # - plugin=handler
|
|
# # - plugin=service
|
|
# # - plugin=mix
|
|
# out: stub/go
|
|
# NOTE: Typescript
|
|
# - remote: buf.build/bufbuild/es:v2.2.2
|
|
# # opt: import_prefix=github.com/nfel
|
|
# out: stub/ts
|
|
- local: protoc-gen-es
|
|
out: stub/ts
|
|
opt: target=ts
|
|
|
|
# - local: protobuf-ts
|
|
# # opt: import_prefix=github.com/nfel
|
|
# out: stub/ts
|
|
inputs:
|
|
- directory: ./
|
|
# - git_repo: ssh://git@5.34.204.11/Kahroba/proto
|
|
# branch: v2
|
|
|