jshint laxbreak

This commit is contained in:
goferito 2014-10-04 23:00:16 +02:00
parent 5e7113afba
commit e7db6a314c

View file

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