2017-05-25 15:26:33 +00:00
|
|
|
/* eslint-env node, es6 */
|
2016-04-07 13:08:44 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2023-09-18 18:54:37 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
2017-05-25 15:26:33 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2016-04-07 13:08:44 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
|
|
|
|
|
|
grunt.initConfig( {
|
2017-05-25 15:26:33 +00:00
|
|
|
eslint: {
|
2019-08-23 06:34:50 +00:00
|
|
|
options: {
|
2020-01-08 07:48:40 +00:00
|
|
|
cache: true
|
2019-08-23 06:34:50 +00:00
|
|
|
},
|
2016-04-07 13:08:44 +00:00
|
|
|
all: [
|
2020-09-11 21:49:03 +00:00
|
|
|
'**/*.{js,json}',
|
2017-11-11 23:39:13 +00:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
2016-04-07 13:08:44 +00:00
|
|
|
]
|
|
|
|
},
|
2023-09-18 18:54:37 +00:00
|
|
|
banana: conf.MessagesDirs
|
2016-04-07 13:08:44 +00:00
|
|
|
} );
|
|
|
|
|
2020-09-11 21:49:03 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2016-04-07 13:08:44 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|