Skip to content
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

Merged
merged 3 commits into from
Dec 24, 2020
Merged

Add grpc-node support #134

merged 3 commits into from
Dec 24, 2020

Conversation

mc0
Copy link
Contributor

@mc0 mc0 commented Dec 24, 2020

  • 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

This builds on the work by @Multiply.

Closes #10

Copy link
Owner

@Dig-Doug Dig-Doug left a 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.

docs/migrating_to_multi_rules.md Outdated Show resolved Hide resolved
src/typescript_proto_library.bzl Show resolved Hide resolved
@@ -230,20 +304,54 @@ def _typescript_proto_library_impl(ctx):
],
)

typescript_proto_library = rule(
def typescript_proto_library(name, proto):
Copy link
Owner

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.

Copy link
Contributor Author

@mc0 mc0 Dec 24, 2020

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?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/typescript_proto_library.bzl Outdated Show resolved Hide resolved
src/typescript_proto_library.bzl Outdated Show resolved Hide resolved
src/typescript_proto_library.bzl Outdated Show resolved Hide resolved
- 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`
@mc0
Copy link
Contributor Author

mc0 commented Dec 24, 2020

Great work on this change! Left a few minor nits, overall looks good.

Once the CI passes this should be good to go.

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?

@Dig-Doug Dig-Doug merged commit c0b4f4f into Dig-Doug:master Dec 24, 2020
@Dig-Doug
Copy link
Owner

I squashed the commits so no need to clean up. Thanks for your work on this! I'll cut a new version too.

@mc0 mc0 deleted the add_grpc_node_support branch December 24, 2020 15:10
@Multiply
Copy link
Contributor

Thanks for getting this in.
It's been a while since I posted my initial prototype if I recall correct. I totally forgot about this. 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for grpc-node
3 participants