Merge remote-tracking branch 'origin/fix-ts-grpc' into bazel-1.0-support

This commit is contained in:
Adam Liddell 2019-10-18 22:00:38 +01:00
commit 3ffbd993c3
4 changed files with 14 additions and 9 deletions

View File

@ -10,6 +10,11 @@
</div>
## Announcements
- **2019/10/10**: Bazel 1.0.0 has been released but is not yet supported fully by rules_proto_grpc. Please follow the [Bazel 1.0.0 Support issue](https://github.com/rules-proto-grpc/rules_proto_grpc/issues/22) if you are waiting for support, which will be released in version 1.0.0 of rules_proto_grpc. If you are seeing issues with Bazel 1.0.0 that are not mentioned or linked in that issue, please add a comment or open a new issue.
## Contents:
- [Overview](#overview)
@ -433,7 +438,7 @@ _rule = rule(
deps = attr.label_list(
mandatory = True,
providers = [ProtoInfo, ProtoLibraryAspectNodeInfo],
aspects = [example_compile],
aspects = [example_aspect],
),
),
)

View File

@ -32,10 +32,7 @@ proto_plugin(
"import_style=commonjs+dts",
"mode=grpcweb",
],
outputs = [
"{protopath}_grpc_web_pb.js",
"{protopath}_pb.d.ts",
],
output_directory = True, # Plugin outputs cannot be predicted as they depend on service/package name
tool = "@com_github_grpc_grpc_web//javascript/net/grpc/web:protoc-gen-grpc-web",
visibility = ["//visibility:public"],
)
@ -46,9 +43,7 @@ proto_plugin(
"import_style=typescript",
"mode=grpcweb",
],
outputs = [
"{protopath}_pb.d.ts",
],
output_directory = True, # Plugin outputs cannot be predicted as they depend on service/package name
tool = "@com_github_grpc_grpc_web//javascript/net/grpc/web:protoc-gen-grpc-web",
visibility = ["//visibility:public"],
)

View File

@ -239,7 +239,7 @@ _rule = rule(
deps = attr.label_list(
mandatory = True,
providers = [ProtoInfo, ProtoLibraryAspectNodeInfo],
aspects = [example_compile],
aspects = [example_aspect],
),
),
)

View File

@ -10,6 +10,11 @@
</div>
## Announcements
- **2019/10/10**: Bazel 1.0.0 has been released but is not yet supported fully by rules_proto_grpc. Please follow the [Bazel 1.0.0 Support issue](https://github.com/rules-proto-grpc/rules_proto_grpc/issues/22) if you are waiting for support, which will be released in version 1.0.0 of rules_proto_grpc. If you are seeing issues with Bazel 1.0.0 that are not mentioned or linked in that issue, please add a comment or open a new issue.
## Contents:
- [Overview](#overview)