var gulp = require('gulp'),
    gutil = require('gulp-util');

function loadTasks(config) {
    var tasks = Object.keys(config);
    tasks.forEach(function (name) {
        var taskConfig = config[name],
            task = require(taskConfig.def)(taskConfig);

        gulp.task(name, task);
    });

    return gulp;
}

module.exports = function (config) {
    if (config) {
        return loadTasks(config);
    }
    return loadTasks;
};

@@ -1,67 +1,4 @@
-var gulp = require('gulp'),%0A    gutil = require('gulp-util');%0A%0A
 func
@@ -8,24 +8,30 @@
 n loadTasks(
+gulp, 
 config) %7B%0A  
@@ -198,41 +198,200 @@
 fig)
-;%0A%0A        gulp.task(name, task);
+,%0A            deps =  taskConfig.deps %7C%7C %5B%5D;%0A%0A        if (deps.length !== 0) %7B%0A            gulp.task(name, taskConfig.deps, task);%0A        %7D else %7B%0A            gulp.task(name, task);%0A        %7D
 %0A   
@@ -443,16 +443,22 @@
 nction (
+gulp, 
 config) 
@@ -502,16 +502,22 @@
 adTasks(
+gulp, 
 config);

use global gulp, won't work otherwise