grpc.js

RuleDescription
grpcjs_grpc_compileGenerates protobuf closure grpc *.js files
grpcjs_grpc_libraryGenerates protobuf closure library *.js files

grpcjs_grpc_compile

Generates protobuf closure grpc *.js files

WORKSPACE

load("@build_stack_rules_proto//github.com/stackb/grpc.js:deps.bzl", "grpcjs_grpc_compile")

grpcjs_grpc_compile()

BUILD.bazel

load("@build_stack_rules_proto//github.com/stackb/grpc.js:grpcjs_grpc_compile.bzl", "grpcjs_grpc_compile")

grpcjs_grpc_compile(
    name = "greeter_grpc.js_grpc",
    deps = ["@build_stack_rules_proto//example/proto:greeter_grpc"],
)

Mandatory Attributes

NameTypeDefaultDescription
depslist<ProtoInfo>[]List of labels that provide a ProtoInfo (such as native.proto_library)

Optional Attributes

NameTypeDefaultDescription
verboseint0The 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

grpcjs_grpc_library

Generates protobuf closure library *.js files

WORKSPACE

load("@build_stack_rules_proto//github.com/stackb/grpc.js:deps.bzl", "grpcjs_grpc_library")

grpcjs_grpc_library()

load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")

closure_repositories()

BUILD.bazel

load("@build_stack_rules_proto//github.com/stackb/grpc.js:grpcjs_grpc_library.bzl", "grpcjs_grpc_library")

grpcjs_grpc_library(
    name = "greeter_grpc.js_library",
    deps = ["@build_stack_rules_proto//example/proto:greeter_grpc"],
)

Mandatory Attributes

NameTypeDefaultDescription
depslist<ProtoInfo>[]List of labels that provide a ProtoInfo (such as native.proto_library)

Optional Attributes

NameTypeDefaultDescription
verboseint0The 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