asdf-games/node_modules/connect-pushstate/Gruntfile.js

32 lines
597 B
JavaScript

'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: [
'**/*.js',
'<%= mochaTest.test.src %>'
],
options: {
jshintrc: '.jshintrc',
ignores: ['node_modules/**']
}
},
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: ['test/**/*-test.js']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.registerTask('test', ['jshint', 'mochaTest']);
grunt.registerTask('default', ['test']);
};