Skip to content

Commit

Permalink
Fixed build issues using node.js v4.2.3 (thanks to gulp-community/gul…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyVignelles committed Dec 21, 2015
1 parent a8e1602 commit 2986057
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
;
Expand All @@ -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/'))
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 2986057

Please sign in to comment.