broccoli-flow
v1.0.0
Published
Run Flow through Broccoli
Downloads
2
Readme
broccoli-flow
Run Flow checking through Broccoli
Installation
npm install --save-dev broccoli-flow
Usage
Chances are, you're not going to use this directly, since Broccoli is most often used as part of the Ember CLI. If that's the case for you, then you'll want to check out ember-cli-flow
.
If you actually are using it through Broccoli directly, the API is pretty simple.
// See more in `tests/broccoli-plugin.js`
const Funnel = require('broccoli-funnel');
const { mv } = require('broccoli-stew');
const FlowFilter = require('broccoli-flow');
let tree = new Funnel('input');
tree = new FlowFilter(tree, {
printErrors: false
});
tree = mv(tree, 'output');