update promise

This commit is contained in:
Philipp Kunz 2016-02-14 18:42:45 +01:00
parent c5ec5fc0f9
commit 6284fa71d1

View File

@ -27,9 +27,10 @@ var myFunction = function () {
} }
gulp.task('gulpTest',function() { gulp.task('gulpTest',function() {
gulp.src('./mydir/*.something') var stream = gulp.src('./mydir/*.something')
.pipe(gulpFunction(myFunction,'forEach')) //read the notes below .pipe(gulpFunction(myFunction,'forEach')) //read the notes below
.pipe(gulp.dest("./build/")) .pipe(gulp.dest("./build/"));
return stream; // by returning the stream gulp knows when our task has finished.
}); });
``` ```