2023-07-01 13:26:21 +00:00
|
|
|
'use strict';
|
|
|
|
|
2015-06-17 17:36:29 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2023-07-01 13:26:21 +00:00
|
|
|
const 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: [
|
2023-07-01 13:26:21 +00:00
|
|
|
'**/*.{js,json}',
|
2019-05-06 22:58:33 +00:00
|
|
|
'!{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' );
|
|
|
|
};
|