Skip to content

asterjs/aster-changed

Repository files navigation

aster-changed

NPM version Build Status

Rebuild only changed files in aster.

Usage

First, install aster-changed as a development dependency:

npm install --save-dev aster-changed

Then, add it to your build script:

var aster = require('aster');
var changed = require('aster-changed');

aster.src('src/**/*.js')
.map(changed(function (src) {
  return src
    .map(plugin1())
    .map(plugin2())
    // ... any plugins that can work on individual files
}))
.map(aster.dest('dist'))
.subscribe(aster.runner);

API

changed(processor)

processor

Type: Function

Part of build pipeline that can work on individual files (it will be called on every bunch of changed files and results will be cached for future calls).

License

MIT License

Releases

No releases published

Packages

No packages published