Skip to content

This gulp plugin create a cache file that filter files in your stream that haven't changed since last run

License

Notifications You must be signed in to change notification settings

cwohlman/gulp-file-cache

 
 

Repository files navigation

gulp-file-cache

NPM versionDependency Status

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.

Usage

First, install gulp-file-cache as a development dependency:

npm install --save-dev gulp-file-cache

Then, add it to your gulpfile.js:

The following task only lint new or updated files

var FileCache = require("gulp-file-cache");

var fileCache = new FileCache();

gulp.src("./src/*.ext")
	.pipe(fileCache.filter())
	.pipe(jshint())
	.pipe(fileCache.cache());

API

new FileCache(name)

Create a new FileCache instance

name

Type: String Default: .gulp-cache

The cache file name saved on disk.

FileCache.filter()

Create a through stream that filters file that are already in the cache

FileCache.cache()

Cache file in the stream into the cache file

License

MIT License

About

This gulp plugin create a cache file that filter files in your stream that haven't changed since last run

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%