3 ms·
It's unfortunate that each project has a `genproto.sh` and that there's no tool that autogenerates protocol libraries/modules for any consuming language. It's a
by gravypod 8y ago
It's unfortunate that each project has a `genproto.sh` and that there's no tool that autogenerates protocol libraries/modules for any consuming language. It's a real pain point of trying to get people to look at gRPC. I'd be amazing if there was a simple way to have:
.proto(s) -> language code -> language binary/package
Completely automated and ready for an import into a project.
- EdSchouten 8y agoBazel should be pretty good for that: https://bazel.build/ https://bazel.build/ https://docs.bazel.build/versions/master/be/protocol-buffer.html#proto_library https://docs.bazel.build/versions/master/be/protocol-buffer.... We use it at work to build a web app whose backend is written in Go and frontend in Typescript. All of the code gets built and placed in a Docker image using these rules: https://github.com/bazelbuild/rules_docker https://github.com/bazelbuild/rules_docker
- alpb 8y agoHi author here. We wanted to keep the demo app as simple as possible for readers. Adding Bazel would introduce another layer of complexity whereas most devs can read bash scripts that are a couple of lines.
- gravypod 8y agoWhat sucks is this is all generated at compile time. I loose out on auto completr from my IDE if codegen is done during build.