gulp-pcache
gulp incremental build on each process.
Last updated 3 years ago by hrsh7th .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-pcache 
SYNC missed versions from official npm registry.

gulp-pcache

gulp incremental build on each process.

usage.

const gulp = require('gulp');
const eslint = require('gulp-eslint');
const concat = require('gulp-concat');
const pcache = require('gulp-pcache')({path: __dirname + '/.gulpcache'});

// only passthrough modified files.
gulp.task('scripts:eslint', function() {
  return gulp.src('**/*.js')
    .pipe(pcache('scripts:eslint'))
    .pipe(eslint());
});

// only passthrough modified files.
// and remember stream.
gulp.task('scripts:concat', function() {
  return gulp.src('**/*.js')
    .pipe(pcache('scripts:concat'))
    .pipe(remember('scripts:concat'))
    .pipe(concat())
    .pipe(gulp.dest('bundle.js'));
});

gulp.task('cache:clear', function() {
  pcache.clear();
});

// auto save cache.
process.on('exit', function() {
  pcache.save();
});

Current Tags

  • 2.0.1                                ...           latest (3 years ago)

2 Versions

  • 2.0.1                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |