2017-05-11 15:22:09 +00:00
|
|
|
/* eslint-env node, es6 */
|
2016-10-13 08:14:18 +00:00
|
|
|
module.exports = function ( grunt ) {
|
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
2017-05-11 15:22:09 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
|
|
|
2016-10-13 08:14:18 +00:00
|
|
|
grunt.initConfig( {
|
2017-05-11 15:22:09 +00:00
|
|
|
eslint: {
|
2019-02-10 16:05:35 +00:00
|
|
|
options: {
|
2019-04-03 23:06:08 +00:00
|
|
|
cache: true
|
2019-02-10 16:05:35 +00:00
|
|
|
},
|
2016-10-13 08:14:18 +00:00
|
|
|
all: [
|
2020-04-25 20:50:16 +00:00
|
|
|
'**/*.{js,json}',
|
2017-11-11 23:17:28 +00:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
2016-10-13 08:14:18 +00:00
|
|
|
]
|
|
|
|
},
|
2020-04-25 20:50:16 +00:00
|
|
|
banana: conf.MessagesDirs
|
2016-10-13 08:14:18 +00:00
|
|
|
} );
|
|
|
|
|
2020-04-25 20:50:16 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2016-10-13 08:14:18 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|