27 lines
485 B
JavaScript
27 lines
485 B
JavaScript
![]() |
/*jshint node:true */
|
||
|
module.exports = function ( grunt ) {
|
||
|
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
|
||
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
||
|
grunt.loadNpmTasks( 'grunt-jsonlint' );
|
||
|
|
||
|
grunt.initConfig( {
|
||
|
jshint: {
|
||
|
all: [
|
||
|
'*.js'
|
||
|
]
|
||
|
},
|
||
|
banana: {
|
||
|
all: 'i18n/'
|
||
|
},
|
||
|
jsonlint: {
|
||
|
all: [
|
||
|
'**/*.json',
|
||
|
'!node_modules/**'
|
||
|
]
|
||
|
}
|
||
|
} );
|
||
|
|
||
|
grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
|
||
|
grunt.registerTask( 'default', 'test' );
|
||
|
};
|