| module.exports = function(grunt) { | |
| 'use strict'; | |
| // Project configuration. | |
| grunt.initConfig({ | |
| jshint: { | |
| all: [ | |
| 'Gruntfile.js', | |
| 'index.js' | |
| ], | |
| options: { | |
| jshintrc: '.jshintrc' | |
| } | |
| }, | |
| mochaTest:{ | |
| options: { | |
| reporter: 'spec' | |
| }, | |
| tests:{ | |
| src: ['tests/tests.js'] | |
| } | |
| } | |
| }); | |
| // These plugins provide necessary tasks. | |
| grunt.loadNpmTasks('grunt-contrib-jshint'); | |
| grunt.loadNpmTasks('grunt-mocha-test'); | |
| grunt.registerTask('test', ['jshint', 'mochaTest']); | |
| grunt.registerTask('default', ['test']); | |
| }; | |