newscoop/JS-Scoopwriter

View on GitHub
grunt/copy.js

Summary

Maintainability
A
0 mins
Test Coverage
// Put files not handled in other tasks here
module.exports = {
    dist: {
        files: [
            {
                expand: true,
                dot: true,
                cwd: '<%= source %>',
                dest: '<%= dist %>',
                src: [
                    '*.{ico,png,txt}',
                    '.htaccess',
                    'css/plugin.css',
                    'css/aes-custom-styles.css',
                    'bower_components/**/*',
                    'scripts/aloha/plugins/aes/**/*',
                    'scripts/routing/*',
                    'images/{,*/}*',
                    'fonts/*'
                ]
            },
            {
                expand: true,
                cwd: '.tmp/images',
                dest: '<%= dist %>/images',
                src: ['generated/*']
            }
        ]
    },
    styles: {
        expand: true,
        cwd: '<%= source %>/styles',
        dest: '.tmp/styles/',
        src: '{,*/}*.css'
    },
    newscoop: {
        files: [{
                expand: true,
                cwd: '<%= dist %>',
                dest: '<%= plugin %>/Resources/public/',
                src: [
                    'index.html',
                    'css/plugin.css',
                    'css/aes-custom-styles.css',
                    'bower_components/**/*',
                    'scripts/aloha/plugins/aes/**/*',
                    'fonts/{,*/}*',
                    'images/{,*/}*',
                    'scripts/{,*/}*',
                    'styles/{,*/}*',
                    'views/{,*/}*'
                ]
            }]
    }
};