gulp-cacheable
v1.1.1
Published
A gulp plugin for caching gulp streams using vinyl sources
Downloads
4
Maintainers
Readme
gulp-cacheable
A gulp plugin for caching gulp streams using vinyl-sources.
Installation
npm install gulp-cacheable
Usage
var gulp = require('gulp');
var plugin1 = require('gulp-plugin1');
var plugin2 = require('gulp-plugin2');
var cacheable = require('gulp-cacheable');
gulp.task('javascript', function() {
gulp.src('src/**/*.js')
.pipe(cacheable.start({ cacheProvider: new cacheable.DiskCacheProvider('.buildcache') }))
.pipe(plugin1())
.pipe(plugin2())
.pipe(cacheable.stop())
.pipe(gulp.dest('dist'));
});
Plugins between cacheable.start(..)
and cacheable.stop()
can implement vinyl-sources to supply details about which source files made up the transformed result.