2018-02-08 14:15:37 +00:00
|
|
|
/* eslint-env node */
|
|
|
|
|
2015-06-20 05:01:11 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2018-02-08 14:15:37 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
2015-06-20 05:01:11 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2018-02-08 14:15:37 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-20 05:01:11 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
2018-02-08 14:15:37 +00:00
|
|
|
banana: conf.MessagesDirs,
|
|
|
|
eslint: {
|
2019-05-07 17:03:40 +00:00
|
|
|
options: {
|
|
|
|
extensions: [ '.js', '.json' ],
|
|
|
|
cache: true
|
|
|
|
},
|
2017-04-21 15:59:56 +00:00
|
|
|
all: [
|
2019-05-07 17:03:40 +00:00
|
|
|
'**/*.js{,on}',
|
|
|
|
'!{vendor,node_modules}/**'
|
2015-06-20 05:01:11 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2019-05-07 17:03:40 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-20 05:01:11 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|