2018-11-12 14:30:52 +00:00
|
|
|
/* eslint-env node, es6 */
|
2015-06-17 17:36:29 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2015-11-16 19:26:56 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
2018-11-12 14:30:52 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-11-16 19:26:56 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2015-06-17 17:36:29 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
2018-11-12 14:30:52 +00:00
|
|
|
eslint: {
|
2019-02-10 15:53:26 +00:00
|
|
|
options: {
|
2019-04-03 23:02:08 +00:00
|
|
|
cache: true
|
2019-02-10 15:53:26 +00:00
|
|
|
},
|
2015-11-16 19:26:56 +00:00
|
|
|
all: [
|
2019-05-06 22:58:33 +00:00
|
|
|
'**/*.js{,on}',
|
|
|
|
'!{vendor,node_modules}/**'
|
2015-11-16 19:26:56 +00:00
|
|
|
]
|
|
|
|
},
|
2019-05-06 22:58:33 +00:00
|
|
|
banana: conf.MessagesDirs
|
2015-06-17 17:36:29 +00:00
|
|
|
} );
|
|
|
|
|
2019-05-06 22:58:33 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-17 17:36:29 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|