/*jshint camelcase:false */

module.exports = function (grunt) {
  // Load all grunt tasks
  require('load-grunt-tasks')(grunt);

  // Project configuration.
  grunt.initConfig({
    release: {
      options: {
        bump: true, //default: true
        file: 'package.json', //default: package.json
        add: true, //default: true
        commit: true, //default: true
        tag: true, //default: true
        push: true, //default: true
        pushTags: true, //default: true
        npm: true, //default: true
        tagName: 'v<%= version %>', //default: '<%= version %>'
        commitMessage: 'releasing v<%= version %>', //default: 'release <%= version %>'
        tagMessage: 'v<%= version %>' //default: 'Version <%= version %>'
      }
    },
    jshint: {
      options: {
        jshintrc: true,
      },
      lib: ['lib/**/*.js'],
    },
    watch: {
      spec: {
        files: [
          'lib/**/*.js',
          'test/**/*.js',
        ],
        tasks: ['mochaTest:spec'],
      },
    },
    mochaTest: {
      options: {
        reporter: 'spec',
      },
      spec: {
        src: ['test/spec/*.js']
      }
    },
  });

  // Default task.
  grunt.registerTask('default', []);
};

@@ -999,24 +999,161 @@
 %5D,%0A      %7D,%0A
+      unit: %7B%0A        files: %5B%0A          'lib/**/*.js',%0A          'test/**/*.js',%0A        %5D,%0A        tasks: %5B'mochaTest:unit'%5D,%0A      %7D,%0A
     %7D,%0A    m
@@ -1262,16 +1262,71 @@
 /*.js'%5D%0A
+      %7D,%0A      unit: %7B%0A        src: %5B'test/unit/*.js'%5D%0A
       %7D%0A

Create unit watcher grunt task