module.exports = function (grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    karma: {
      options: {
        configFile: 'karma.conf.js',
        singleRun: true
      },
      auto: {}
    },
    browserify: {
      client: {
        files: {
          'vendor/html2hscript.js': ['node_modules/html2hscript/index.js']
        }
      }
    },
    concat: {
      options: {
        separator: "\n\n"
      },
      dist: {
        src: [
          'src/_intro.js',
          'src/main.js',
          'src/_outro.js'
        ],
        dest: 'dist/<%= pkg.name.replace(".js", "") %>.js'
      }
    },

    replace: {
      dist: {
        options: {
          patterns: [
            {
              match: 'version',
              replacement: '<%= pkg.version %>'
            }
          ]
        },
        files: [
          {
            expand: true,
            flatten: true,
            src: ['dist/luffa.js', 'dist/luffa.min.js'],
            dest: 'dist/'
          }
        ]
      }
    },
    watch: {
      files: ['src/*.js'],
      tasks: ['concat', 'jshint', 'qunit']
    }
  });

  require('load-grunt-tasks')(grunt);

  //browserify
  var shell = require('shelljs');
  shell.exec('browserify -r html2hscript -o vendor/html2hscript.js');
  shell.exec('browserify -r is-object -o vendor/is-object.js');

  grunt.registerTask('default', ['concat', 'replace', 'karma']);
};

@@ -1097,27 +1097,8 @@
 cat'
-, 'jshint', 'qunit'
 %5D%0A  

remove jshint & qunit for watch