Skip to content

Instantly share code, notes, and snippets.

@pedroreys
Created September 3, 2014 23:31
Show Gist options
  • Save pedroreys/71b67935d0ce124bc46b to your computer and use it in GitHub Desktop.
Save pedroreys/71b67935d0ce124bc46b to your computer and use it in GitHub Desktop.
Appending multiple src streams in a gulp task
var streamqueue = require('streamqueue');
gulp.task('zipit', ['clean', 'less'], function () {
var stream = streamqueue({objectMode: true});
stream.queue(
gulp.src(['**', '!./protobuffer/**', '!./node_modules/**', '!./archive/**', '!./.idea/**', '!./db/**', '!./docs/**', '!./logs/**'], {base: "."})
);
// let's add a single file from /protobuffer that was excluded in the previous src stream
stream.queue(
gulp.src('./protobuffer/circulationData.proto', {base: "."})
);
return stream.done()
.pipe(zip('foo' + packageVersion + '.zip'))
.pipe(gulp.dest('archive'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment