2019-05-07 17:16:37 +00:00
|
|
|
/* eslint-env node, es6 */
|
2015-06-20 05:06:20 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2019-05-07 17:16:37 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
2015-06-20 05:06:20 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2019-05-07 17:16:37 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-20 05:06:20 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
2019-05-07 17:16:37 +00:00
|
|
|
eslint: {
|
|
|
|
options: {
|
|
|
|
cache: true
|
|
|
|
},
|
2017-04-24 08:47:38 +00:00
|
|
|
all: [
|
2019-05-07 17:17:54 +00:00
|
|
|
'**/*.js{,on}',
|
2019-05-07 17:16:37 +00:00
|
|
|
'!{vendor,node_modules}/**'
|
2017-04-24 08:47:38 +00:00
|
|
|
]
|
|
|
|
},
|
2019-05-07 17:17:54 +00:00
|
|
|
banana: conf.MessagesDirs
|
2015-06-20 05:06:20 +00:00
|
|
|
} );
|
|
|
|
|
2019-05-07 17:17:54 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-20 05:06:20 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|