node-bing-api/Gruntfile.js
2015-05-07 20:13:17 -04:00

48 lines
1.3 KiB
JavaScript

module.exports = function (grunt) {
grunt.initConfig({
simplemocha: {
options: {
globals: ['should'],
timeout: 3000,
ignoreLeaks: false,
ui: 'bdd',
reporter: 'list'
},
all: {
src: ['test/**/*.js']
}
},
jsbeautifier: {
files: ['Gruntfile.js', 'index.js', 'lib/**/*.js', 'test/**/*.js'],
options: {
js: {
jslintHappy: true
}
}
},
jshint: {
options: {
laxbreak: true
},
all: ['Gruntfile.js', 'index.js', 'lib/**/*.js', 'test/**/*.js']
},
jsdoc: {
all: {
src: ['index.js', 'lib/**/*.js'],
dest: 'doc'
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jsbeautifier');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.registerTask('test', ['simplemocha:all']);
grunt.registerTask('build', ['jsbeautifier', 'jshint', 'test']);
grunt.registerTask('default', ['build', 'jsdoc']);
};