gd

gulp-delta

Only pass through changed files by comparing buffer contents

Showing:

Popularity

Downloads/wk

1

GitHub Stars

1

Maintenance

Last Commit

8yrs ago

Contributors

1

Package

Dependencies

3

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gulp-delta

Only pass through delta filesby comparing buffer contents

Based off of sindresorhus's gulp-changed. Compares streams based on buffer contents incase the source of the stream was not a file.

Usage

var gulp = require('gulp');
var delta = require('gulp-delta');
var name = require('vinyl-source-stream');
var uglify = require('gulp-uglify');
var browersify = require('browserify');

var livereload = require('gulp-livereload')
var lr_server = require('tiny-lr')();

//Will only trigger live-reload and file writing if there has been code changes
gulp.task('js', function () {
    browserify('./src/app.js')
        .bundle()
        .pipe(name('bundle.js'))
        .pipe(uglify())
        .pipe(delta('./prod'))
        .pipe(gulp.dest('./prod'))
        .pipe(livereload(lr_server));
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial