Coder Social home page Coder Social logo

cwohlman / gulp-file-cache Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pgherveou/gulp-file-cache

0.0 0.0 0.0 6 KB

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

License: MIT License

JavaScript 100.00%

gulp-file-cache's Introduction

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

gulp-file-cache's People

Contributors

pgherveou avatar cwohlman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.