Compare commits

...

4 Commits

Author SHA1 Message Date
e10c31c740 2.0.2 2016-10-19 00:47:33 +02:00
af68a92702 improve README 2016-10-19 00:47:29 +02:00
a8c3fa048a 2.0.1 2016-10-19 00:44:06 +02:00
bea33fa29f fix base image for CI 2016-10-19 00:39:34 +02:00
3 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
image: hosttoday/ht-docker-node:npmci
image: hosttoday/ht-docker-node:npmts
stages:
- test
- release

View File

@ -19,12 +19,12 @@ accepts call to execute in gulp pipeline.
### Usage
```javascript
var gulp = require("gulp");
var gulpFunction = require("gulp-function");
var Q = require("q");
let gulp = require("gulp");
let gulpFunction = require("gulp-function");
let Q = require("q");
var myFunction = function (file, enc) { // file and enc are optional in case you want to modify the file object
var done = Q.defer();
let myFunction = function (file, enc) { // file and enc are optional in case you want to modify the file object
let done = Q.defer();
console.log("Hello World!")
// NOTE:
@ -36,7 +36,7 @@ var myFunction = function (file, enc) { // file and enc are optional in case you
}
gulp.task('gulpTest',function() {
var stream = gulp.src('./mydir/*.something')
let stream = gulp.src('./mydir/*.something')
.pipe(gulpFunction(myFunction,'forEach')) //read the notes below
.pipe(gulp.dest("./build/"));
return stream; // by returning the stream gulp knows when our task has finished.

View File

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