tree: 7f4fba8d7a006df3c026fe2728ebad661b729e81 [path history] [tgz]
  1. .bazelignore
  2. .bazelrc
  3. app.ts
  4. BUILD.bazel
  5. car.proto
  6. car.spec.ts
  7. defs.bzl
  8. package.json
  9. README.md
  10. tire.proto
  11. tsconfig.json
  12. WORKSPACE
  13. yarn.lock
examples/protobufjs/README.md

protobufjs example

This shows how the protobuf.js build tools and runtime library can be used to consume .proto files.

Note that the example requires some “userland” code to invoke the tools, since there is no “custom rule” to invoke them under Bazel. See defs.bzl for the sample code you will need.

Currently the example doesn't exercise the Service definitions in the proto, but we expect this is easily added. It would be a great community contribution.