'use strict';

var defaultTasks = require('../tasks');

module.exports = function extendTasks(gulp, tasks) {
    var allTasks = Object.assign({}, defaultTasks, tasks);

    Object.keys(allTasks).forEach(function(taskName) {
        var args = [taskName].concat(tasks[taskName]);
        gulp.task.apply(gulp, args);
    });
};

'use strict';

var defaultTasks = require('../tasks');

module.exports = function extendTasks(gulp, tasks) {
    tasks = Object.assign({}, defaultTasks, tasks);

    Object.keys(tasks).forEach(function(taskName) {
        var args = [taskName].concat(tasks[taskName]);
        gulp.task.apply(gulp, args);
    });
};

Fix tasks not running.