Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.12 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.12 KB

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