0.1.0 • Published 10 years ago

aster-changed v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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