Skip to content

protoc-gen-bazel is a Bazel build file generator which generates typescript code from protocol buffers

License

Notifications You must be signed in to change notification settings

Shivam010/protoc-gen-bazel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protoc-gen-bazel

protoc-gen-bazel is a Bazel build file generator which is used to convert protocol buffers files to corresponding typescipts files.

Installation

go get github.com/Shivam010/protoc-gen-bazel
go install github.com/Shivam010/protoc-gen-bazel

Command

Command to generate the build files for the examples-protos:

protoc -I . examples/person/person.proto examples/address/address.proto examples/address/zip_code.proto --bazel_out .

This command will generate Bazel build files in the same location as that of the corresponding proto.

Now, update the WORKSPACE file if required and then, start the Bazel build, to generate the typescript files.

bazel build //...:*

About

protoc-gen-bazel is a Bazel build file generator which generates typescript code from protocol buffers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages