mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-04 18:49:30 +08:00
23 lines
No EOL
548 B
Text
23 lines
No EOL
548 B
Text
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']);
|
|
}; |