Created
May 28, 2018 20:14
-
-
Save mrmeku/1966374c89e62beb20c55b8d68a3af5a to your computer and use it in GitHub Desktop.
Example of how to consume the same proto_library within TypeScript and Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package(default_visibility = ["//visibility:public"]) | |
load("@build_bazel_rules_typescript//:defs.bzl", "ts_proto_library") | |
proto_library( | |
name = "car_proto", | |
srcs = ["car.proto"], | |
) | |
ts_proto_library( | |
name = "car_ts_proto", | |
deps = [":car_proto"], | |
) | |
java_proto_library( | |
name = "car_java_proto", | |
deps = [":car_proto"], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment