2018-07-28 23:32:15 +00:00
|
|
|
/* eslint-env node, es6 */
|
|
|
|
module.exports = function ( grunt ) {
|
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
|
|
|
|
|
|
grunt.initConfig( {
|
|
|
|
eslint: {
|
2019-12-14 23:07:18 +00:00
|
|
|
options: {
|
2020-01-08 05:33:18 +00:00
|
|
|
cache: true
|
2019-12-14 23:07:18 +00:00
|
|
|
},
|
2018-07-28 23:32:15 +00:00
|
|
|
all: [
|
2020-09-11 21:48:00 +00:00
|
|
|
'**/*.{js,json}',
|
2018-07-28 23:32:15 +00:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
|
|
|
]
|
|
|
|
},
|
2020-09-11 21:48:00 +00:00
|
|
|
banana: conf.MessagesDirs
|
2018-07-28 23:32:15 +00:00
|
|
|
} );
|
|
|
|
|
2020-09-11 21:48:00 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2018-07-28 23:32:15 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|