Nanobots Producing Megastructures

    gulp-delta

    0.1.1 • Public • Published

    gulp-delta

    Only pass through delta filesby comparing buffer contents

    Based off of sindresorhus's gulp-delta. 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));
    });

    Install

    npm i gulp-delta

    DownloadsWeekly Downloads

    3

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • stolksdorf