buf.gen.yaml 882 B

1234567891011121314151617181920212223242526272829303132
  1. version: v2
  2. managed:
  3. enabled: true
  4. disable:
  5. - file_option: go_package
  6. module: buf.build/googleapis/googleapis
  7. override:
  8. - file_option: go_package_prefix
  9. value: github.com/usememos/memos/proto/gen
  10. plugins:
  11. - remote: buf.build/protocolbuffers/go
  12. out: gen
  13. opt: paths=source_relative
  14. - remote: buf.build/grpc/go
  15. out: gen
  16. opt: paths=source_relative
  17. - remote: buf.build/grpc-ecosystem/gateway
  18. out: gen
  19. opt: paths=source_relative
  20. - remote: buf.build/grpc-ecosystem/openapiv2
  21. out: gen
  22. opt: output_format=yaml,allow_merge=true
  23. - remote: buf.build/community/stephenh-ts-proto
  24. out: ../web/src/types/proto
  25. opt:
  26. - env=browser
  27. - useOptionals=messages
  28. - outputServices=generic-definitions
  29. - outputJsonMethods=false
  30. - useExactTypes=false
  31. - esModuleInterop=true
  32. - stringEnums=true