From 2986057e3febdc927fa000c09195b5a79a9fc390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20VIGNELLES?= Date: Mon, 21 Dec 2015 12:34:10 +0100 Subject: [PATCH] Fixed build issues using node.js v4.2.3 (thanks to https://github.com/tracker1/gulp-header/issues/23 ) --- gulpfile.js | 8 +++++--- package.json | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index cba6431..025be4c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,13 +6,13 @@ var gulp = require('gulp') , uglify = require('gulp-uglify') , browserify = require('browserify') , source = require('vinyl-source-stream') - , streamify = require('gulp-streamify') , rename = require('gulp-rename') , qunit = require('gulp-qunit') , jshint = require('gulp-jshint') , jscs = require('gulp-jscs') , sync = require('gulp-config-sync') , header = require('gulp-header') + , buffer = require('vinyl-buffer') , pkg = require('./package.json') , banner = "// svg-pan-zoom v<%= pkg.version %>" + "\n" + "// https://github.com/ariutta/svg-pan-zoom" + "\n" ; @@ -28,10 +28,12 @@ gulp.task('browserify', function() { this.emit("end") }) .pipe(source('svg-pan-zoom.js')) + .pipe(buffer()) .pipe(header(banner, {pkg: pkg})) .pipe(gulp.dest('./dist/')) - .pipe(streamify(rename('svg-pan-zoom.min.js'))) - .pipe(streamify(uglify())) + .pipe(rename('svg-pan-zoom.min.js')) + .pipe(buffer()) + .pipe(uglify()) .pipe(header(banner, {pkg: pkg})) .pipe(gulp.dest('./dist/')) }); diff --git a/package.json b/package.json index 5ed2f21..4a576af 100644 --- a/package.json +++ b/package.json @@ -47,9 +47,9 @@ "gulp-plumber": "^0.6.6", "gulp-qunit": "^1.1.0", "gulp-rename": "^1.2.0", - "gulp-streamify": "0.0.5", "gulp-uglify": "^1.0.2", "gulp-watch": "^3.0.0", + "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.0.0" } }