Merge branch 'patch-1' into 'master'

Fix sample code in README.md

See merge request pushrocks/gulp-function!2
This commit is contained in:
Phil Kunz 2018-12-09 00:08:24 +00:00
commit a05253bdcd

View File

@ -35,8 +35,8 @@ let myAsyncFunction = async (file, enc) => {
gulp.task("gulpTest", function() { gulp.task("gulpTest", function() {
let stream = gulp let stream = gulp
.src("./mydir/*.something") .src("./mydir/*.something")
.pipe(gulpFunction(myFunction, "forEach")) //read the notes below .pipe(gulpFunction(myAsyncFunction, "forEach")) //read the notes below
// .pipe(forEach(myFunction)) // if imported as >> import { forEach } from 'gulp-function' << // .pipe(forEach(myAsyncFunction)) // if imported as >> import { forEach } from 'gulp-function' <<
.pipe(gulp.dest("./build/")); .pipe(gulp.dest("./build/"));
return stream; // by returning the stream gulp knows when our task has finished. return stream; // by returning the stream gulp knows when our task has finished.
}); });