2017-10-09 14:29:26 +00:00
|
|
|
/* eslint-env node, es6 */
|
2015-06-20 05:28:08 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2019-08-24 23:00:59 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
2015-06-20 05:28:08 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2017-10-09 14:29:26 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-20 05:28:08 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
2019-08-24 23:00:59 +00:00
|
|
|
banana: conf.MessagesDirs,
|
2017-10-09 14:29:26 +00:00
|
|
|
eslint: {
|
2019-05-07 17:52:09 +00:00
|
|
|
options: {
|
|
|
|
cache: true
|
|
|
|
},
|
2015-06-20 05:28:08 +00:00
|
|
|
all: [
|
2019-05-07 17:52:09 +00:00
|
|
|
'**/*.js{,on}',
|
|
|
|
'!{vendor,node_modules}/**'
|
2015-06-20 05:28:08 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2019-05-07 17:52:09 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-20 05:28:08 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|