'use strict';

module.exports = function(grunt) {

    grunt.initConfig({

    pkg: grunt.file.readJSON('package.json'),
    banner: '/*!\n' +
            ' * HTMLMinifier v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
            ' * Copyright 2010-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
            ' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' +
            ' */\n',

        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            gruntfile: {
                src: 'Gruntfile.js'
            },
            src: {
                src: ['src/**/*.js']
            },
            tests: {
                src: ['tests/*.js']
            },
            web: {
                src: ['master.js']
            }
        },

        concat: {
            options: {
                banner: '<%= banner %>'
            },
            js: {
                src: ['src/htmlparser.js',
                      'src/htmlminifier.js',
                      'src/htmllint.js'],
                dest: 'dist/htmlminifier.js'
            }
        },

        uglify: {
            options: {
                banner: '<%= banner %>',
                compress: true,
                mangle: true,
                preserveComments: false,
                report: 'min'
            },
            minify: {
                files: {
                    'dist/htmlminifier.min.js': '<%= concat.js.dest %>'
                }
            }
        }


    });

    require('load-grunt-tasks')(grunt, { scope: 'devDependencies' });
    require('time-grunt')(grunt);

    grunt.registerTask('build', [
        'concat'
    ]);

    grunt.registerTask('dist', [
        'concat',
        'uglify'
    ]);

    grunt.registerTask('test', [
        'concat',
        'jshint'
    ]);

    grunt.registerTask('default', 'test');

};

@@ -1,19 +1,4 @@
-'use strict';%0A%0A
 modu
@@ -27,16 +27,34 @@
 grunt) %7B
+%0A    'use strict';
 %0A%0A    gr
@@ -618,25 +618,24 @@
        src: 
-%5B
 'src/**/*.js
@@ -631,25 +631,24 @@
 src/**/*.js'
-%5D
 %0A           
@@ -693,17 +693,16 @@
    src: 
-%5B
 'tests/*
@@ -701,25 +701,24 @@
 'tests/*.js'
-%5D
 %0A           
@@ -761,17 +761,16 @@
    src: 
-%5B
 'master.
@@ -772,17 +772,16 @@
 ster.js'
-%5D
 %0A       
@@ -907,18 +907,20 @@
         
-js
+dist
 : %7B%0A    
@@ -1453,18 +1453,20 @@
  concat.
-js
+dist
 .dest %25%3E

Remove unneeded arrays.