gulpclass icon indicating copy to clipboard operation
gulpclass copied to clipboard

Example of @MergedTask

Open diestrin opened this issue 8 years ago • 1 comments

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 :)

diestrin avatar Sep 26 '16 04:09 diestrin

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"));
];
}

pleerock avatar Sep 26 '16 05:09 pleerock