import { taskMaker } from '../taskMaker';

function copyTasks(gulp, config) {
    taskMaker(gulp)
        .createTask({
            name: 'copy:dist',
            desc: 'Copy JS and HTML to dist/',
            fn: copyDist,
        });


    function copyDist() {
        gulp.src([
            config.paths.src.root + '**/*.js',
            config.paths.src.root + '**/*.html',
        ])
            .pipe(gulp.dest(config.paths.dist.root));
    }
}

export { copyTasks };

import { taskMaker } from '../taskMaker';

function copyTasks(gulp, config) {
    taskMaker(gulp)
        .createTask({
            name: 'copy:dist',
            desc: 'Copy JS and HTML to dist/',
            fn: copyDist,
        });


    function copyDist() {
        gulp.src([
            config.paths.src.root + '**/*.js',
            config.paths.src.root + '**/*.json',
            config.paths.src.root + '**/*.html',
        ])
            .pipe(gulp.dest(config.paths.dist.root));
    }
}

export { copyTasks };

include json files when copying src -> dist