Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/steadicat/gulp-unseen

Only let through identical files once, and save state to a file.
https://github.com/steadicat/gulp-unseen

Last synced: 8 days ago
JSON representation

Only let through identical files once, and save state to a file.

Awesome Lists containing this project

README

        

gulp-unseen
===========

Only let through identical files once, and save state to a file.

Example:

~~~javascript
source
.pipe($.unseen.skip('seen.json')) // Skip files that we previously recorded in seen.json
.pipe($.if('**/*.{js,css}', $.gzip()))
.pipe($.if('**/*.{jpg,png}', $.imagemin()))
.pipe($.s3(aws))
.pipe($.unseen.manifest('seen.json')) // Generate new seen.json manifest
.pipe(gulp.dest('.')) // Save manifest locally
.pipe($.s3(aws)); // Upload manifest to S3 for posterity
~~~