fixes #3 and removes beautylog dependency

This commit is contained in:
2016-04-04 22:32:30 +02:00
parent f094f80531
commit bb607eca9b
5 changed files with 28 additions and 17 deletions

View File

@ -0,0 +1,4 @@
/// <reference path="typings/main.d.ts" />
export let Q = require("q");
export let through2 = require("through2");

View File

@ -1,10 +1,6 @@
/// <reference path="typings/main.d.ts" />
var plugins = {
beautylog: require("beautylog"),
Q: require("q"),
through: require("through2")
}
import plugins = require("./gulpfunction.plugins");
@ -29,7 +25,7 @@ module.exports = function (functionsToExecuteArg:any|any[],executionModeArg:stri
runFunction(functionsToExecute[anyFunction]);
}
} else {
plugins.beautylog.error('gulp-callfunction: something is strange with the given arguments');
throw new Error("gulp-callfunction: something is strange with the given arguments");
}
return plugins.Q.all(promiseArray);
};
@ -65,5 +61,5 @@ module.exports = function (functionsToExecuteArg:any|any[],executionModeArg:stri
cb();
}
};
return plugins.through.obj(forEach,atEnd);
return plugins.through2.obj(forEach,atEnd);
};