Commit Graph

11 Commits

Author SHA1 Message Date
Yannic Bonenberger e994bb108b [bazel] Introduce grpc_web_toolchain
This change adds a new rule `grpc_web_toolchain` which we will use to
provide the generator/runtime to `closure_grpc_web_library`.

Updates #507

RELNOTES: [bazel] `closure_grpc_web_library` now uses toolchains to
resolve the generator and runtime. To migrate, add the following snipped
to your `WORKSPACE`:
```starlark
load("@com_github_grpc_grpc_web//bazel:repositories.bzl", "grpc_web_toolchains")
grpc_web_toolchains()
```
2020-07-17 11:26:31 -07:00
Yannic Bonenberger a055960f80 Add experimental ES6 import style
This change adds a new `import_style` that emits ES6 modules.
For now, this only re-exports the symbols from `import_style=closure`.

In the future, this will no longer require emitting google modules
(`goog.provide`). If protobuf ever adds support for emitting ES6
modules, we will use them instead of the `goog.provided`'d versions
as well.

Note that the Bazel integration is currently broken because of a
limitation in `rules_closure`.
2020-06-04 16:46:05 -07:00
Yannic Bonenberger 40cbb49772 [bazel] Update rules_closure + fix linter warnings
Working towards resolving #744, #575, #550, #700
2020-03-18 22:56:59 -07:00
Daniel Bader 885dfbc546 Let _proto_include_paths return list instead of depset. 2019-07-02 13:32:32 -07:00
Daniel Bader d74c3f0abf As of Bazel 0.27.0, depset is no longer iterable. 2019-07-02 13:32:32 -07:00
Yannic Bonenberger cb3499c967 [bazel] Migrate protobuf info provider to new-style one 2019-03-18 10:40:06 -07:00
Daniel Bader fab336348d Suppress messages 2018-11-28 11:47:36 -08:00
factuno-db e03f5ddb63 Make the bazel rules work with current rules_closure. (#368)
* closure_js_library_impl --> create_closure_js_library
* [WORKSPACE] update closure rules to current
* _CloserWorker + _closure_library_base --> CLOSURE_JS_TOOLCHAIN_ATTRS
2018-11-13 13:41:15 -08:00
Yannic Bonenberger a1a77220e2 Add "strictDependencies" to suppress attribute of Bazel rule
Not suppressing this causes an error for a missing direct dependency
for the generated gRPC-Web library if a service returns a protobuf
message not declared in the same proto_library.
2018-08-30 12:32:53 +02:00
Max Vorobev 8aafc2786e Include `unusedPrivateMembers` to suppress attribute of rule 2018-08-10 21:36:33 +03:00
Yannic Bonenberger 76a4de8a6c Add bazel rule closure_grpc_web_library 2018-08-05 15:30:57 +02:00