Broccoli Diffing Writer
A flavor of broccoli-writer
which diffs its input between rebuilds. When the build
method is called, it
is called with an array of entry objects that represent any changes that took
place.
Example
var Plugin = ; MyPluginprototype = Object;MyPluginprototypeconstructor = MyPlugin; { options = options || {}; Plugin;} MyPluginprototype { // diff is an array containing changes // [ // ['create', 'some/file.js', { ... }], // ['unlink', 'deleted/file/here.js', { ... }], // ['change', 'some/changed/file.js', { ... }] // ]};
Documentation
new DiffingWriter(inputNode, options)
Call this base class constructor from your subclass constructor.
-
inputNode
: A single input node. -
options
:name
,annotation
,persistentOutput
: Same as broccoli-plugin; see there.
Tests
Running the tests:
npm installnpm test
License
This project is distributed under the MIT license.