gRPC-Web rules
closure_grpc_compile
Generates Closure *.js protobuf+gRPC files
WORKSPACE
load("@rules_proto_grpc//github.com/grpc/grpc-web:repositories.bzl", rules_proto_grpc_grpc_web_repos="grpc_web_repos")
rules_proto_grpc_grpc_web_repos()
load("@io_bazel_rules_closure//closure:repositories.bzl", "rules_closure_dependencies", "rules_closure_toolchains")
rules_closure_dependencies(
omit_com_google_protobuf = True,
)
rules_closure_toolchains()
BUILD.bazel
load("@rules_proto_grpc//github.com/grpc/grpc-web:defs.bzl", "closure_grpc_compile")
closure_grpc_compile(
name = "greeter_grpc-web_grpc",
deps = ["@rules_proto_grpc//example/proto:greeter_grpc"],
)
Attributes
| Name | Type | Mandatory | Default | Description |
|---|
deps | list<ProtoInfo> | true | [] | List of labels that provide a ProtoInfo (such as native.proto_library) |
verbose | int | false | 0 | The verbosity level. Supported values and results are 1: show command, 2: show command and sandbox after running protoc, 3: show command and sandbox before and after running protoc, 4. show env, command, expected outputs and sandbox before and after running protoc |
commonjs_grpc_compile
Generates CommonJS *.js protobuf+gRPC files
WORKSPACE
load("@rules_proto_grpc//github.com/grpc/grpc-web:repositories.bzl", rules_proto_grpc_grpc_web_repos="grpc_web_repos")
rules_proto_grpc_grpc_web_repos()
load("@io_bazel_rules_closure//closure:repositories.bzl", "rules_closure_dependencies", "rules_closure_toolchains")
rules_closure_dependencies(
omit_com_google_protobuf = True,
)
rules_closure_toolchains()
BUILD.bazel
load("@rules_proto_grpc//github.com/grpc/grpc-web:defs.bzl", "commonjs_grpc_compile")
commonjs_grpc_compile(
name = "greeter_grpc-web_grpc",
deps = ["@rules_proto_grpc//example/proto:greeter_grpc"],
)
Attributes
| Name | Type | Mandatory | Default | Description |
|---|
deps | list<ProtoInfo> | true | [] | List of labels that provide a ProtoInfo (such as native.proto_library) |
verbose | int | false | 0 | The verbosity level. Supported values and results are 1: show command, 2: show command and sandbox after running protoc, 3: show command and sandbox before and after running protoc, 4. show env, command, expected outputs and sandbox before and after running protoc |
commonjs_dts_grpc_compile
Generates commonjs_dts *.js protobuf+gRPC files
WORKSPACE
load("@rules_proto_grpc//github.com/grpc/grpc-web:repositories.bzl", rules_proto_grpc_grpc_web_repos="grpc_web_repos")
rules_proto_grpc_grpc_web_repos()
load("@io_bazel_rules_closure//closure:repositories.bzl", "rules_closure_dependencies", "rules_closure_toolchains")
rules_closure_dependencies(
omit_com_google_protobuf = True,
)
rules_closure_toolchains()
BUILD.bazel
load("@rules_proto_grpc//github.com/grpc/grpc-web:defs.bzl", "commonjs_dts_grpc_compile")
commonjs_dts_grpc_compile(
name = "greeter_grpc-web_grpc",
deps = ["@rules_proto_grpc//example/proto:greeter_grpc"],
)
Attributes
| Name | Type | Mandatory | Default | Description |
|---|
deps | list<ProtoInfo> | true | [] | List of labels that provide a ProtoInfo (such as native.proto_library) |
verbose | int | false | 0 | The verbosity level. Supported values and results are 1: show command, 2: show command and sandbox after running protoc, 3: show command and sandbox before and after running protoc, 4. show env, command, expected outputs and sandbox before and after running protoc |
ts_grpc_compile
Generates CommonJS *.ts protobuf+gRPC files
WORKSPACE
load("@rules_proto_grpc//github.com/grpc/grpc-web:repositories.bzl", rules_proto_grpc_grpc_web_repos="grpc_web_repos")
rules_proto_grpc_grpc_web_repos()
load("@io_bazel_rules_closure//closure:repositories.bzl", "rules_closure_dependencies", "rules_closure_toolchains")
rules_closure_dependencies(
omit_com_google_protobuf = True,
)
rules_closure_toolchains()
BUILD.bazel
load("@rules_proto_grpc//github.com/grpc/grpc-web:defs.bzl", "ts_grpc_compile")
ts_grpc_compile(
name = "greeter_grpc-web_grpc",
deps = ["@rules_proto_grpc//example/proto:greeter_grpc"],
)
Attributes
| Name | Type | Mandatory | Default | Description |
|---|
deps | list<ProtoInfo> | true | [] | List of labels that provide a ProtoInfo (such as native.proto_library) |
verbose | int | false | 0 | The verbosity level. Supported values and results are 1: show command, 2: show command and sandbox after running protoc, 3: show command and sandbox before and after running protoc, 4. show env, command, expected outputs and sandbox before and after running protoc |
closure_grpc_library
Generates protobuf closure library *.js files
WORKSPACE
load("@rules_proto_grpc//github.com/grpc/grpc-web:repositories.bzl", rules_proto_grpc_grpc_web_repos="grpc_web_repos")
rules_proto_grpc_grpc_web_repos()
load("@io_bazel_rules_closure//closure:repositories.bzl", "rules_closure_dependencies", "rules_closure_toolchains")
rules_closure_dependencies(
omit_com_google_protobuf = True,
)
rules_closure_toolchains()
BUILD.bazel
load("@rules_proto_grpc//github.com/grpc/grpc-web:defs.bzl", "closure_grpc_library")
closure_grpc_library(
name = "greeter_grpc-web_library",
deps = ["@rules_proto_grpc//example/proto:greeter_grpc"],
)
Attributes
| Name | Type | Mandatory | Default | Description |
|---|
deps | list<ProtoInfo> | true | [] | List of labels that provide a ProtoInfo (such as native.proto_library) |
verbose | int | false | 0 | The verbosity level. Supported values and results are 1: show command, 2: show command and sandbox after running protoc, 3: show command and sandbox before and after running protoc, 4. show env, command, expected outputs and sandbox before and after running protoc |