gulpclass
gulpclass copied to clipboard
Example of @MergedTask
I saw it was using https://github.com/teambition/merge2, but can't think if an example on how to use this? Can I manipulate the merged stream?
Thanks :)
just mark your methods with @MergedTask
and return an array of streams:
@MergedTask()
action() {
return [
gulp.src("./es5/src/**/*")
.pipe(gulp.dest("./dist"));,
gulp.src("./es6/src/**/*")
.pipe(gulp.dest("./dist"));
];
}