/*
 * COPY: Copy files and folders
 */
module.exports = {
    installFonts: {
        files: [{
            expand: true,
            flatten: true,
            src: [
                'node_modules/font-awesome/fonts/*'
            ],
            filter: 'isFile',
            dest: 'fonts/'
        }]
    },

    installCkeditor1: {
        files: [
            {
                // Copy all CKEditor files
                expand: true,
                cwd: 'lib/ckeditor',
                src: [
                    'plugins/**',
                    'skins/**',
                    'styles.js'
                ],
                dest: 'js/ckeditor'
            }, {
                // Copy our empty config file
                src: 'lib/bolt/ckeditor-config.js',
                dest: 'js/ckeditor/config.js'
            }, {
                // Copy style to css folder
                src: 'lib/ckeditor/contents.css',
                dest: 'css/ckeditor-contents.css'
            }, {
                // Copy CKEditor locale
                expand: true,
                flatten: true,
                src: 'lib/ckeditor/lang/*.js',
                dest: 'js/locale/ckeditor'
            }
        ]
    },

    installCkeditor2: {
        // process doesn't work on file level, so we need a new target
        src: 'lib/ckeditor/ckeditor.js',
        dest: 'js/ckeditor/ckeditor.js',
        options: {
            process: function (cont) {
                return cont.replace(/(CKEDITOR\.getUrl\()"lang\/"(\+a\+"\.js"\))/, '$1"../locale/ckeditor/"$2');
            }
        }
    },

    installJqueryGomap: {
        src: 'lib/jquery-gomap/jquery-gomap.min.js',
        dest: 'js/jquery-gomap.min.js'
    }
};

@@ -182,20 +182,28 @@
    '
-node_modules
+%3C%25= path.src.node %25%3E
 /fon
@@ -285,21 +285,38 @@
  dest: '
+%3C%25= path.dest.
 fonts
+ %25%3E
 /'%0A     
@@ -479,19 +479,35 @@
   cwd: '
-lib
+%3C%25= path.src.lib %25%3E
 /ckedito
@@ -665,34 +665,51 @@
          dest: '
-js
+%3C%25= path.dest.js %25%3E
 /ckeditor'%0A     
@@ -792,16 +792,26 @@
 c: '
-lib/bolt
+%3C%25= path.src.js %25%3E
 /cke
@@ -843,34 +843,51 @@
          dest: '
-js
+%3C%25= path.dest.js %25%3E
 /ckeditor/config
@@ -966,35 +966,51 @@
           src: '
-lib
+%3C%25= path.src.lib %25%3E
 /ckeditor/conten
@@ -1041,19 +1041,36 @@
  dest: '
-css
+%3C%25= path.dest.css %25%3E
 /ckedito
@@ -1217,35 +1217,51 @@
           src: '
-lib
+%3C%25= path.src.lib %25%3E
 /ckeditor/lang/*
@@ -1289,18 +1289,35 @@
  dest: '
-js
+%3C%25= path.dest.js %25%3E
 /locale/
@@ -1467,19 +1467,35 @@
   src: '
-lib
+%3C%25= path.src.lib %25%3E
 /ckedito
@@ -1525,18 +1525,35 @@
  dest: '
-js
+%3C%25= path.dest.js %25%3E
 /ckedito
@@ -1811,19 +1811,35 @@
   src: '
-lib
+%3C%25= path.src.lib %25%3E
 /jquery-
@@ -1881,18 +1881,35 @@
  dest: '
-js
+%3C%25= path.dest.js %25%3E
 /jquery-

Make usage of grunt templates in copy task