mkretschek/node-environmentize

View on GitHub
Gruntfile.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = function(grunt) {
  'use strict';

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    jshint: {
      options: {
        jshintrc: true
      },
      all: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js']
    },

    mochaTest: {
      test: {
        options: {
          reporter: 'dot',
          ui: 'bdd',
          ignoreLeaks: false
        },
        src: ['test/**/*.js']
      }
    }
  });

  // Load the jshint plugin
  grunt.loadNpmTasks('grunt-contrib-jshint');

  // Load the mocha runner plugin
  grunt.loadNpmTasks('grunt-mocha-test');


  // Test tasks
  grunt.registerTask('test', ['jshint', 'mochaTest']);

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

};