2019-05-06 23:18:42 +00:00
|
|
|
/* eslint-env node, es6 */
|
2015-06-17 19:10:43 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2019-05-06 23:18:42 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
2015-06-17 19:10:43 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2019-05-06 23:18:42 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-17 19:10:43 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
|
|
|
banana: conf.MessagesDirs,
|
2019-05-06 23:18:42 +00:00
|
|
|
eslint: {
|
|
|
|
options: {
|
|
|
|
cache: true
|
|
|
|
},
|
2017-04-21 15:59:56 +00:00
|
|
|
all: [
|
2019-05-06 23:19:30 +00:00
|
|
|
'**/*.js{,on}',
|
2019-05-06 23:18:42 +00:00
|
|
|
'!{vendor,node_modules}/**'
|
2017-04-21 15:59:56 +00:00
|
|
|
]
|
2015-06-17 19:10:43 +00:00
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2019-05-06 23:19:30 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-17 19:10:43 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|