Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
9d54da207f | |||
7aad993847 |
@ -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.
|
||||||
});
|
});
|
||||||
|
@ -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",
|
||||||
|
Reference in New Issue
Block a user