fixes #3 and removes beautylog dependency
This commit is contained in:
		
							
								
								
									
										4
									
								
								ts/gulpfunction.plugins.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								ts/gulpfunction.plugins.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
/// <reference path="typings/main.d.ts" />
 | 
			
		||||
 | 
			
		||||
export let Q = require("q");
 | 
			
		||||
export let through2 = require("through2");
 | 
			
		||||
							
								
								
									
										10
									
								
								ts/index.ts
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								ts/index.ts
									
									
									
									
									
								
							@@ -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);
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user