Awesome
pbhbs
Generate files based on protobuf definition and handlebars templates.
Getting Started
Prerequisites
You need to have yarn or npm installed
Installation
With yarn
yarn global add pbhbs
With npm
npm install -g pbhbs
Usage
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: .]
Examples
Currently there is no examples, please contribute to #8 :)
Running the tests
Currently no tests have been provided, please contribute to #7 :)
Deployment
Currently handmade, please contribute to #5, #6 and #7 :)
Built With
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
Currently handmade, please contribute to #5 :)
Authors
- Godefroy Ponsinet - Initial work - gponsinet
License
This project is licensed under the MIT License - see the LICENSE file for details
Acknowlegment
- Inspired by moul/protoc-gen-gotemplate
- Idea provided by gfanton