{"size": 3641, "ext": "js", "max_stars_repo_path": "lib/build/tasks/copy.js", "max_stars_repo_name": "johan--/cartodb", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/build/tasks/copy.js", "max_issues_repo_name": "johan--/cartodb", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/build/tasks/copy.js", "max_forks_repo_name": "johan--/cartodb", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.2733333333, "max_line_length": 116, "alphanum_fraction": 0.3875308981}

  /**
   *  Copy task config
   */

  exports.task = function(grunt) {

    return {

      // Vendor stylesheets

      vendor: {
        expand: true,
        cwd: 'vendor/assets/stylesheets/',
        src: ['**/*.css'],
        dest: 'tmp/sass/vendor/',
        rename: function(dest, src) {
          return dest + src.replace(/\.css$/, ".scss");
        },
        options: {
          // Change all routes from img to asset version path
          process: function (content, srcpath) {
            // return content.replace(/\.\.\/img/gi,"/assets/<%= pkg.version %>/images/themes");
            var path = grunt.template.process("<%= env.http_path_prefix %>/assets/<%= pkg.version %>/images/themes")
            return content.replace(/\.\.\/img/gi, path);
          }
        }
      },

      app: {

        files: [

          /**
           *  Stylesheets
           */

            // App stylesheets
          {
            expand: true,
            cwd: 'app/assets/stylesheets/',
            src: ['**/*.css.scss', '**/*.scss'],
            dest: 'tmp/sass/',
            rename: function(dest, src) {
              return dest + src.replace(/\.css.scss$/, ".scss");
            }
          },

            // Vendor stylesheets
          {
            expand: true,
            cwd: 'vendor/assets/stylesheets/',
            src: ['**/*.css.scss', '**/*.scss'],
            dest: 'tmp/sass/',
            rename: function(dest, src) {
              return dest + src.replace(/\.css.scss$/, ".scss");
            }
          },

            // Jasmine stylesheets
          {
            expand: true,
            cwd: 'lib/assets/test/lib/jasmine-1.3.1/',
            src: ['**/*.css'],
            dest: 'tmp/sass/specs/',
            rename: function(dest, src) {
              return dest + src.replace(/\.css$/, ".scss");
            }
          },

            // Embed stylesheets
          {
            expand: true,
            cwd: 'lib/assets/javascripts/cdb/themes/css/',
            src: ['cartodb.css'],
            dest: '<%= assets_dir %>/stylesheets/tmp/embeds/',
            rename: function(dest, src) {
              return dest + src.replace(/\.css$/, ".scss");
            }
          },

          /**
           *  Images
           */

            // public images

          {
            expand: true,
            cwd: 'app/assets/images/',
            src: ['**/*'],
            dest: '<%= assets_dir %>/images/'
          },

            // CartoDB.js images

          {
            expand: true,
            cwd: 'lib/assets/javascripts/cdb/themes/img/',
            src: ['**/*'],
            dest: '<%= assets_dir %>/images/themes/'
          },

          /**
           *  Fonts
           */

          {
            expand: true,
            cwd: 'app/assets/fonts/',
            src: ['**/*'],
            dest: '<%= assets_dir %>/fonts/'
          },

          /**
           *  Flash
           */

          {
            expand: true,
            cwd: 'app/assets/flash/',
            src: ['**/*'],
            dest: '<%= assets_dir %>/flash/'
          },

          /**
           *  Favicons
           */

          {
            expand: true,
            cwd: 'public/favicons/',
            src: ['**/*'],
            dest: '<%= assets_dir %>/favicons/'
          }
        ]
      },

      js: {
        expand: true,
        cwd: '<%= assets_dir %>/javascripts/',
        src: ['**/*.js'],
        dest: '<%= assets_dir %>/javascripts/',
        rename: function(dest, src) {
          return dest + src.replace(/\.js$/, ".uncompressed.js");
        }
      }
    }
  };
