'use strict';

const gulp = require('gulp'),

      config = require('./gulp/config.json');

let tasks = Object.keys(config.task),
    defaultTasks = tasks.filter(taskName => {
        return config.task[taskName].default;
    });

tasks.map(file => {
    require('./gulp/tasks/' + file + '.js');
});

gulp.task('default', defaultTasks);

'use strict';

const gulp = require('gulp'),

      config = require('./gulp/config.json');

let tasks = Object.keys(config.task),
    defaultTasks = tasks.filter(taskName => {
        return config.task[taskName].default;
    });

tasks.map(file => {
    let path = `./gulp/tasks/${file}.js`;

    require(path);
});

gulp.task('default', defaultTasks);

Put argument values to variables
Put argument values to variables
