text: // Generated on 2016-04-25 using generator-nodejs 3.2.0
  module.exports = function (grunt) {
    grunt.initConfig({
      pkg: grunt.file.readJSON('package.json'),
      complexity: {
        generic: {
          src: ['app/**/*.js'],
          options: {
            errorsOnly: false,
            cyclometric: 6,       // default is 3
            halstead: 16,         // default is 8
            maintainability: 100  // default is 100
          }
        }
      },
      jshint: {
        all: [
          'Gruntfile.js',
          'app/**/*.js',
          'test/**/*.js'
        ],
        options: {
          jshintrc: '.jshintrc'
        }
      },
      mochacli: {
        all: ['test/**/*.js'],
        options: {
          reporter: 'spec',
          ui: 'tdd'
        }
      },
      watch: {
        js: {
          files: ['**/*.js', '!node_modules/**/*.js'],
          tasks: ['default'],
          options: {
            nospawn: true
          }
        }
      },
      nodemon: {
        dev: {
          script: 'index.js'
        }
      }
    });
  
    grunt.loadNpmTasks('grunt-complexity');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-mocha-cli');
    grunt.loadNpmTasks('grunt-nodemon');
    grunt.registerTask('test', ['complexity', 'jshint', 'mochacli', 'watch']);
    grunt.registerTask('ci', ['complexity', 'jshint', 'mochacli']);
    grunt.registerTask('default', ['nodemon']);
  };
  