Adds .proto
compilation support to
brunch using protobuf.js.
To use this package, you are required to have babel-brunch
to process the ES6 output. For this to work, we also recommend that you put the protobufjs-brunch
dependency above babel-brunch
(yes, brunch uses order for compilation dependency).
Install the plugin via npm with npm install --save-dev protobufjs-brunch
.
Or, do manual install:
- Add
"protobufjs-brunch": "x.y.z"
topackage.json
of your brunch app. Pick a plugin version that corresponds to your minor (y) brunch version. - If you want to use git version of plugin, add
"protobufjs-brunch": "git+ssh://git@github.com:lego/protobufjs-brunch.git"
.
Set additional include paths:
module.exports = {
plugins: {
proto: {
includePath: 'src/messages'
}
}
}