gulp plugin. Create a cache that filter files in your stream that haven't changed since last run
npm install gulp-file-cache> file-cache plugin for gulp
file-cache creates a cache file on your disk to filter files in your stream that haven't changed since last run.
First, install gulp-file-cache as a development dependency:
``shell`
npm install --save-dev gulp-file-cache
Then, add it to your gulpfile.js:
The following task only lint new or updated files
`javascript
var FileCache = require("gulp-file-cache");
var fileCache = new FileCache();
gulp.src("./src/*.ext")
.pipe(fileCache.filter())
.pipe(jshint())
.pipe(fileCache.cache());
`
Create a new FileCache instance
#### name
Type: String.gulp-cache`
Default:
The cache file name saved on disk.
Create a through stream that filters file that are already in the cache
Cache file in the stram into the cache file
[npm-url]: https://npmjs.org/package/gulp-file-cache
[npm-image]: https://badge.fury.io/js/gulp-file-cache.png
[travis-url]: http://travis-ci.org/pgherveou/gulp-file-cache
[travis-image]: https://secure.travis-ci.org/pgherveou/gulp-file-cache.png?branch=master
[coveralls-url]: https://coveralls.io/r/pgherveou/gulp-file-cache
[coveralls-image]: https://coveralls.io/repos/pgherveou/gulp-file-cache/badge.png
[depstat-url]: https://david-dm.org/pgherveou/gulp-file-cache
[depstat-image]: https://david-dm.org/pgherveou/gulp-file-cache.png