2015-10-01 15:20:36 +02:00
|
|
|
/*jshint node:true */
|
|
|
|
module.exports = function ( grunt ) {
|
2016-02-17 15:57:15 +01:00
|
|
|
'use strict';
|
|
|
|
|
2015-10-01 15:20:36 +02:00
|
|
|
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
|
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
|
|
grunt.loadNpmTasks( 'grunt-jsonlint' );
|
|
|
|
|
|
|
|
grunt.initConfig( {
|
|
|
|
jshint: {
|
|
|
|
all: [
|
|
|
|
'*.js'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
banana: {
|
2016-02-17 15:57:15 +01:00
|
|
|
all: 'i18n'
|
2015-10-01 15:20:36 +02:00
|
|
|
},
|
|
|
|
jsonlint: {
|
|
|
|
all: [
|
|
|
|
'**/*.json',
|
2017-11-10 20:22:41 +01:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
2015-10-01 15:20:36 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
|
|
|
grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
|
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|