Have ideas to improve npm?Join in the discussion! »

    aster-changed

    0.1.0 • Public • Published

    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

    Install

    npm i aster-changed

    DownloadsWeekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • avatar