eploko / broccoli-watchify

Watchify plugin for Broccoli.
MIT License
6 stars 10 forks source link

broccoli-watchify Build Status

Gitter

The broccoli-watchify plugin bundles your assets with watchify.

Installation

npm install --save-dev broccoli-watchify

Example

const watchify = require('broccoli-watchify');

const options = {
  browserify: {
    entries: ['./app.js'],
    debug: true
  },
  nodeModulesPath: process.cwd() + '/node_modules', // provide the node_modules you want to resolve from
  outputFile: 'bundled/app.js',
  cache: true,
  init: function (b) {
    b.transform('reactify', {'es6': true});
    b.external('$');
  }
};

const tree = watchify(tree, options);

API

watchify(tree, options)

Options

Changelog

2.0.0

1.0.0

0.2.0

0.1.3

Contributors

The code of this plugin is originally based on the broccoli-browserify plugin by Gareth Andrew.

License

The MIT License (MIT). See LICENSE for details.

Copyright © 2014 Andrey Subbotin.