/*
 * @Date: 2019-12-30 11:24:58
 * @Author: Scm <chengqiuhua@erayt.com>
 * @Copyright: 2015-2019 Erayt, Inc.
 * @Description: If you have some questions, please contact: chengqiuhua@erayt.com.
 */
module.exports = function (grunt) {
    grunt.initConfig({
        meta: {
            base: "node_modules/@erayt",
            dest: "./temp"
        },
        copy: {
            // basic: {
            //     expand: true,
            //     cwd:'<%= meta.base %>/eui3.5-customize-themes/dist',
            //     src: ['**','!**/css/app.css','!**/css/*.map'],
            //     dest: '<%= meta.dest %>'
            // }, // 3.0的项目需要使用eui3.0-customize-themes
            basic: {
                expand: true,
                cwd:'<%= meta.base %>/eui3.0-customize-themes/dist',
                src: ['**','!**/css/app.css','!**/css/*.map'],
                dest: '<%= meta.dest %>'
            },
            resources:{
                expand: true,
                cwd: './asserts',
                src: '**',
                dest: '<%= meta.dest %>'
            }
        },
        clean: {
            cache: ["package-lock.json", "yarn.lock", "<%= meta.dest %>"]
        }
    });

    require("time-grunt")(grunt);
    // grunt plugins
    require( "load-grunt-tasks" )( grunt );

    // Full distribution task.
    grunt.registerTask("default", ["copy"]);

    grunt.registerTask("build",["clean","copy"]);
};

