You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
548 B
23 lines
548 B
module.exports = function(grunt) { |
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint'); |
|
grunt.loadNpmTasks('grunt-mocha-test'); |
|
|
|
grunt.initConfig({ |
|
pkg: grunt.file.readJSON('package.json'), |
|
jshint: { |
|
options: { |
|
node: true |
|
}, |
|
main : ["index.js"] |
|
}, |
|
mochaTest: { |
|
options: { |
|
reporter: 'spec' |
|
}, |
|
src: ['test/*.test.js'] |
|
} |
|
}); |
|
|
|
grunt.registerTask('default', ['jshint:main', 'mochaTest']); |
|
}; |