github.com/stackb/rules_proto@v0.0.0-20240221195024-5428336c51f1/example/golden/testdata/closurejs/BUILD.out (about) 1 load("@rules_proto//proto:defs.bzl", "proto_library") 2 load("@build_stack_rules_proto//rules:proto_compile.bzl", "proto_compile") 3 4 # "proto_rule" instantiates the proto_compile rule 5 # gazelle:proto_rule proto_compile implementation stackb:rules_proto:proto_compile 6 7 # "proto_plugin" instantiates the builtin closurejs plugin 8 # gazelle:proto_plugin closurejs implementation builtin:js:closure 9 10 # "proto_language" binds the rule(s) and plugin(s) together 11 # gazelle:proto_language closurejs rule proto_compile 12 # gazelle:proto_language closurejs plugin closurejs 13 14 proto_library( 15 name = "example_proto", 16 srcs = ["example.proto"], 17 visibility = ["//visibility:public"], 18 ) 19 20 proto_compile( 21 name = "example_closurejs_compile", 22 options = {"@build_stack_rules_proto//plugin/builtin:closurejs": [ 23 "import_style=closure", 24 "library=example_closure", 25 ]}, 26 outputs = ["example_closure.js"], 27 plugins = ["@build_stack_rules_proto//plugin/builtin:closurejs"], 28 proto = "example_proto", 29 )