-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add grpc-node
support
#134
Conversation
5b65e0f
to
680bc77
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this change! Left a few minor nits, overall looks good.
Once the CI passes this should be good to go.
@@ -230,20 +304,54 @@ def _typescript_proto_library_impl(ctx): | |||
], | |||
) | |||
|
|||
typescript_proto_library = rule( | |||
def typescript_proto_library(name, proto): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename this file to typescript_proto_build
and move this macro to another file so it matches the other two macros.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what initially this had but it made reading the diff very difficult. Can we rename it as a separate PR after this one goes in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me.
- Refactor `typescript_proto_library` to generate only messages - Add `typescript_grpc_web_library` to provide previous functionality - Add `typescript_grpc_node_library` to add grpc-node support - Improve documentation - Add migration guide when coming from previous versions - Update `ts-protoc-gen`
680bc77
to
2c29496
Compare
- Clean up minor issues
Thank you! I think I followed the nits, but let me know if there is anything else that needs changing. Also, the commit history is a bit strange since I worked on top of someone else's WIP effort. Should I rebase this and clean up the history? |
I squashed the commits so no need to clean up. Thanks for your work on this! I'll cut a new version too. |
Thanks for getting this in. |
typescript_proto_library
to generate only messagestypescript_grpc_web_library
to provide previous functionalitytypescript_grpc_node_library
to add grpc-node supportts-protoc-gen
This builds on the work by @Multiply.
Closes #10