Generate files based on protobuf definition and handlebars templates.
You need to have yarn or npm installed
With yarn
yarn global add pbhbs
With npm
npm install -g pbhbs
Usage:
pbhbs [--debug] [--output-dir=<dir>] [--template-dir=<dir>] [--proto-path=<proto_path>...] [--helper-dir=<helper-dir>] <protos>...
pbhbs [--debug] (-h | --help)
pbhbs [--debug] (-v | --version)
Parse protobuf declarations and handlebars-js templates to generate custom files
Arguments:
protos Protos input files
Options:
-h --help Show this
-v --version Show current version
-d --debug Display debug informations
-p --proto-path DIR Adds a directory to the include path
-t --template-dir DIR Specify templates directory [default: ./template]
-H --helper-dir DIR Specify handlebars helper directory
-o --output-dir DIR Specify output directory [default: .]
Currently there is no examples, please contribute to #8 :)
Currently no tests have been provided, please contribute to #7 :)
Currently handmade, please contribute to #5, #6 and #7 :)
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Currently handmade, please contribute to #5 :)
- Godefroy Ponsinet - Initial work - gponsinet
This project is licensed under the MIT License - see the LICENSE file for details
- Inspired by moul/protoc-gen-gotemplate
- Idea provided by gfanton