Skip to content

Instantly share code, notes, and snippets.

@yocontra
Created April 11, 2014 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yocontra/10460452 to your computer and use it in GitHub Desktop.
Save yocontra/10460452 to your computer and use it in GitHub Desktop.
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