{"size": 1732, "ext": "js", "max_stars_repo_path": "Gruntfile.js", "max_stars_repo_name": "anton-rudeshko/pomodoro", "max_stars_repo_stars_event_min_datetime": "2015-03-08T23:25:56.000Z", "max_stars_repo_stars_event_max_datetime": "2015-12-24T13:00:23.000Z", "max_issues_repo_path": "Gruntfile.js", "max_issues_repo_name": "anton-rudeshko/pomodoro", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Gruntfile.js", "max_forks_repo_name": "anton-rudeshko/pomodoro", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.9240506329, "max_line_length": 88, "alphanum_fraction": 0.5}
'use strict';

module.exports = function(grunt) {
  grunt.initConfig({
    clean: ['out'],

    copy: {
      main: {
        files: [
          { expand: true, src: 'src/assets/*', dest: 'out/assets/', flatten: true },
          { expand: true, src: 'src/cache.manifest', dest: 'out/', flatten: true },
          { expand: true, src: 'src/favicon.ico', dest: 'out/', flatten: true },
          { expand: true, src: 'src/CNAME', dest: 'out/', flatten: true }
        ]
      }
    },

    csso: {
      options: {
        report: 'min'
      },
      main: {
        files: {
          'out/css/main.css': ['src/css/main.css']
        }
      }
    },

    uglify: {
      options: {
        report: 'min'
      },
      main: {
        files: {
          'out/js/main.js': ['src/js/main.js']
        }
      }
    },

    htmlmin: {
      options: {
        removeRedundantAttributes: true,
        removeAttributeQuotes: true,
        collapseWhitespace: true
      },
      main: {
        files: {
          'out/index.html': 'src/index.html'
        }
      }
    },

    inline: {
      main: {
        src: ['out/index.html']
      }
    },

    'gh-pages': {
      options: {
        base: 'out'
      },
      src: '**/*'
    }
  });

  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-inline');
  grunt.loadNpmTasks('grunt-csso');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-gh-pages');
  grunt.loadNpmTasks('grunt-contrib-htmlmin');

  grunt.registerTask('build', ['clean', 'copy', 'csso', 'uglify', 'htmlmin', 'inline']);
  grunt.registerTask('deploy', ['build', 'gh-pages']);
  grunt.registerTask('default', ['build']);
};
