Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
22e3dc6136 | |||
e69e8df875 | |||
4cb24a4a6d |
@ -4,6 +4,7 @@ accepts call to execute in gulp pipeline.
|
||||
### build status/Dependencies
|
||||
[](https://travis-ci.org/pushrocks/gulp-callfunction)
|
||||
[](https://david-dm.org/pushrocks/gulp-callfunction)
|
||||
[](https://david-dm.org/pushrocks/gulp-callfunction#info=devDependencies)
|
||||
|
||||
### Usage
|
||||
```javascript
|
||||
|
3
index.js
3
index.js
@ -32,10 +32,11 @@ var forEach = function (file, enc, cb) {
|
||||
//tell gulp that we are complete
|
||||
return cb(null, file);
|
||||
};
|
||||
var atEnd = function () {
|
||||
var atEnd = function (cb) {
|
||||
if (gulpCallFunction.executionMode == "atEnd") {
|
||||
runFunctionNames();
|
||||
}
|
||||
cb();
|
||||
};
|
||||
module.exports = function (functionsToExecute, executionMode, logBool) {
|
||||
if (executionMode === void 0) { executionMode = 'forEach'; }
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gulp-callfunction",
|
||||
"version": "0.0.7",
|
||||
"version": "0.0.8",
|
||||
"description": "accepts a function call as parameter to execute in gulp pipeline",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -33,10 +33,11 @@ var forEach = function (file, enc, cb) {
|
||||
return cb(null, file);
|
||||
};
|
||||
|
||||
var atEnd = function() {
|
||||
var atEnd = function(cb) {
|
||||
if (gulpCallFunction.executionMode == "atEnd") {
|
||||
runFunctionNames();
|
||||
}
|
||||
cb();
|
||||
};
|
||||
module.exports = function (functionsToExecute:any|any[],executionMode:string = 'forEach', logBool = false) {
|
||||
gulpCallFunction.functionsToExecute = functionsToExecute;
|
||||
|
Reference in New Issue
Block a user