broccoli-null

1.0.1 • Public • Published

broccoli-null Build Status

Sometimes (but rarely), one wants to return a broccoli tree which does nothing. Rather then relying on private API, this plugins achieves this with public API.

It also ensures all NULL trees are the same;

yarn add broccoli-null
const Null = require('broccoli-null');
const funnel = require('broccoli-funnel');
const merge = require('broccoli-merge-trees');
 
merge([
  funnel(__dirname + '/some/folder'),
  Null.NULL,
  new Null()
]);
Null.NULL === new Null() // => true

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    239
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    239
  • 1.0.0
    0

Package Sidebar

Install

npm i broccoli-null

Weekly Downloads

239

Version

1.0.1

License

MIT

Unpacked Size

2.39 kB

Total Files

3

Last publish

Collaborators

  • stefanpenner