A CLI tool for generating protobuf description from a schema repository
npm install pbc
A CLI tool for generating protobuf description from a schema repository.
Supported output format
- .desc
- .json (JSON descriptors of protobufjs)
Example
```
my_project
├── src
├── package.json
└── .protobuf
.protobuf contains your git url
``
git@github.com:ltman/proto-repo.git
proto-repo
└── schema
├── schemaA.proto
└── schemaB.proto
`$3
- update - fetch all .proto schemas from a remote repository and store in local.
Need to run every time the remote repository has been updated.
- raw - copy all .proto schemas
- desc - generate .desc output _(required Google protoc)_
- json - generate .json (JSON descriptors) output`
npx pbc update // default master
npx pbc update npx pbc raw
npx pbc desc
npx pbc json
``