Skip to content

lgo/protobufjs-brunch

Repository files navigation

protobufjs-brunch

npm version Build Status

Adds .proto compilation support to brunch using protobuf.js.

Warning

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).

Usage

Install the plugin via npm with npm install --save-dev protobufjs-brunch.

Or, do manual install:

  • Add "protobufjs-brunch": "x.y.z" to package.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".

Options

Set additional include paths:

module.exports = {
  plugins: {
    proto: {
      includePath: 'src/messages'
    }
  }
}