module.exports = function (grunt) {
  "use strict";

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    jshint: {
      files: [
        'Gruntfile.js',
        'lib/**/*.js',
        'package.json',
        'test/**/*.js',
        '.jshintrc'
      ],
      options: {
        jshintrc: '.jshintrc'
      }
    },
    mochaTest: {
      all: {
        src: 'test/**/*.js'
      }
    },
    watch: {
      gruntfile: {
        files: ['<%= jshint.files %>'],
        tasks: ['simplemocha:all']
      }
    }
  });

  grunt.loadNpmTasks('grunt-mocha-test');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');

  grunt.registerTask('build', ['jshint', 'mochaTest']);

};

@@ -71,54 +71,8 @@
 g(%7B%0A
-    pkg: grunt.file.readJSON('package.json'),%0A
     
@@ -448,23 +448,13 @@
 : %5B'
-simplemocha:all
+build
 '%5D%0A 
@@ -477,50 +477,8 @@
 );%0A%0A
-  grunt.loadNpmTasks('grunt-mocha-test');%0A
   gr
@@ -563,16 +563,58 @@
 watch');
+%0A  grunt.loadNpmTasks('grunt-mocha-test');
 %0A%0A  grun

build site on watch change