Create a protoc plugin for Node.js gRPC#5445
Conversation
|
LGTM.
Tested:
Notes for future references:
|
|
I tried to run this against I looked at the generated I used this command to generate the .js code as before: |
|
I fixed that problem. It was a simple loop variable bug. I also rewrote the test math client and server to test the generated code (in addition to what they were already doing). |
|
LGTM, and verified. Re-tested the codegen part, and the |
|
Tested the latest commit as well. LGTM. Yes I did have to hack the generated code a bit to import grpc directly before and now I don't. |
|
The Node tests are finally passing |
|
Nice! |
This also rewrites the hello world example to use the generated code. This resolves #5418.
Note:
protocpatched with Fix CommonJS relative require generation, and test it protocolbuffers/protobuf#1274.require('name_grpc_pb.js').GreeterClientand the service definition isrequire('name_grpc_pb.js').GreeterService.