jshint laxbreak
This commit is contained in:
parent
5e7113afba
commit
e7db6a314c
1 changed files with 30 additions and 27 deletions
57
Gruntfile.js
57
Gruntfile.js
|
@ -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']);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue