contrib icon indicating copy to clipboard operation
contrib copied to clipboard

entproto: make it possible to configure generated output so that it can work with Buf/Connect

Open ivanvanderbyl opened this issue 1 year ago • 3 comments

Hi Team,

This PR adds some extra configuration to the generate Hook so that it can output generated code that works with BufBuild's Connect.

Specific changes:

  • Make all method names unique so that specific keys don't collide or generate the method delete() in JS, and follow the naming conventions specified by the linter.
  • Don't create the generate.go file since we're using buf generate instead of protoc.
  • Allow configuring the generation target so we can collocate generated .proto with other hand written files outside of ./ent

ivanvanderbyl avatar Jan 27 '23 05:01 ivanvanderbyl