Run Flow through Broccoli

Usage no npm install needed!

<script type="module">
  import broccoliFlow from '';



Build Status Test Coverage Code Climate

Run Flow checking through Broccoli


npm install --save-dev broccoli-flow


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');