Compare commits

...

2 Commits

Author SHA1 Message Date
9d54da207f 2.2.2 2016-11-25 11:21:59 +01:00
7aad993847 improve README 2016-11-25 11:21:55 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ let myFunction = function (file, enc) { // file and enc are optional in case you
gulp.task('gulpTest',function() { gulp.task('gulpTest',function() {
let stream = gulp.src('./mydir/*.something') let stream = gulp.src('./mydir/*.something')
.pipe(gulpFunction(myFunction,'forEach')) //read the notes below .pipe(gulpFunction(myFunction,'forEach')) //read the notes below
// .pipe(gulpFunction.forEach(myFunction)) // .pipe(forEach(myFunction)) // 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.
}); });

View File

@ -1,6 +1,6 @@
{ {
"name": "gulp-function", "name": "gulp-function",
"version": "2.2.1", "version": "2.2.2",
"description": "accepts a function call as parameter to execute in gulp pipeline", "description": "accepts a function call as parameter to execute in gulp pipeline",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",