Refactor example into main dir
diff --git a/example/proto/routeguide/BUILD.bazel b/example/proto/routeguide/BUILD.bazel index 590ef6f..40968bb 100644 --- a/example/proto/routeguide/BUILD.bazel +++ b/example/proto/routeguide/BUILD.bazel
@@ -4,6 +4,7 @@ srcs = [ "routeguide.proto", ], + visibility = ["//visibility:public"], ) java_proto_library( @@ -19,21 +20,3 @@ "proto_library", ], ) - -load("@//py:rules.bzl", "py_proto_compile") -py_proto_compile( - name = "py_proto_compile", - deps = [ - "proto_library", - ], - has_services = True, -) - -load("@//node:rules.bzl", "node_proto_compile") -node_proto_compile( - name = "node_proto_compile", - deps = [ - "proto_library", - ], - has_services = True, -) \ No newline at end of file
diff --git a/node/example/proto/BUILD.bazel b/node/example/proto/BUILD.bazel new file mode 100644 index 0000000..c014c5e --- /dev/null +++ b/node/example/proto/BUILD.bazel
@@ -0,0 +1,11 @@ + + +load("@//node:rules.bzl", "node_proto_compile") + +node_proto_compile( + name = "routeguide", + deps = [ + "@//example/proto/routeguide:proto_library", + ], + has_services = True, +) \ No newline at end of file
diff --git a/py/example/proto/BUILD.bazel b/py/example/proto/BUILD.bazel new file mode 100644 index 0000000..96ade88 --- /dev/null +++ b/py/example/proto/BUILD.bazel
@@ -0,0 +1,11 @@ + + +load("@//python:rules.bzl", "py_proto_compile") + +py_proto_compile( + name = "routeguide", + deps = [ + "@//example/proto/routeguide:proto_library", + ], + has_services = True, +) \ No newline at end of file