-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
When generating grpc for Nodejs, the documentation for grpc says to do the following:
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` helloworld.proto
note the --plugin=<generator_name>=<binary_location_on_disk>
This is currently possible in Gunk by doing the following:
# .gunkconfig
[generate js]
import_type=commonjs
binary
[generate]
command=/path/to/protoc-gen-grpc
but it isn't possible to do this if doing a shortened generate section; should we make it possible? we could do similar to the following:
# .gunkconfig
[generate js]
import_type=commonjs
binary
[generate grpc]
plugin=/path/to/protoc-gen-grpc
I am not sure if this is something we want, but if we wanted to keep it similar to protoc cli then it is pretty trivial to add something like this in?
Metadata
Metadata
Assignees
Labels
No labels