Skip to content

Commit

Permalink
Gulp-header fix
Browse files Browse the repository at this point in the history
After updating packages the gulp build task stopped working. The
gulp-header was the culprit (details at
gulp-community/gulp-header#23). Changed from
gulp-streamify to gulp-buffer and alls good
  • Loading branch information
grahammendick committed Dec 5, 2015
1 parent 913cba9 commit d7aa968
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var browserify = require('browserify');
var buffer = require('vinyl-buffer');
var shim = require('browserify-shim');
var gulp = require('gulp');
var concat = require('gulp-concat');
Expand All @@ -7,7 +8,6 @@ var header = require('gulp-header');
var mocha = require('gulp-mocha');
var rename = require('gulp-rename');
var source = require('vinyl-source-stream');
var streamify = require('gulp-streamify');
var typescript = require('gulp-tsc');
var uglify = require('gulp-uglify');

Expand Down Expand Up @@ -59,10 +59,12 @@ function buildTask(name, file, to, details) {
.pipe(source(to))
.pipe(rename(to))
.pipe(derequire())
.pipe(buffer())
.pipe(header(info, { details : details } ))
.pipe(gulp.dest('./build/dist'))
.pipe(rename(to.replace(/js$/, 'min.js')))
.pipe(streamify(uglify()))
.pipe(uglify())
.pipe(buffer())
.pipe(header(info, { details : details } ))
.pipe(gulp.dest('./build/dist'));
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"gulp-header": "^1.2.2",
"gulp-mocha": "^2.0.0",
"gulp-rename": "^1.2.0",
"gulp-streamify": "0.0.5",
"gulp-tsc": "^0.10.1",
"gulp-uglify": "^1.1.0",
"tsify": "^0.8.1",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
},
"browserify-shim": {
Expand Down

0 comments on commit d7aa968

Please sign in to comment.