Created
April 11, 2014 11:31
-
-
Save yocontra/10460452 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var source = require('vinyl-source-stream') | |
var buffer = require('vinyl-buffer'); | |
var queue = require('streamqueue'); | |
gulp.task('shit', function(){ | |
// make the fake file | |
var fakeFile = source('fake.js'); | |
var buffered = fakeFile.pipe(buffer()); | |
// join the streams | |
var all = queue( | |
gulp.src('files/*.js'), | |
buffered, | |
gulp.src('files2/*.js') | |
) | |
.pipe(concat('all.js')) | |
.pipe('./dist/'); | |
fakeFile.end(new Buffer('a string')); | |
return all; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment