2020-03-16 15:04:58 +00:00
|
|
|
/* eslint-env node, es6 */
|
2017-01-09 15:37:01 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2020-03-15 08:38:55 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
2017-01-09 15:37:01 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2020-03-15 08:38:55 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2017-01-09 15:37:01 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
2020-03-15 08:38:55 +00:00
|
|
|
banana: conf.MessagesDirs,
|
|
|
|
eslint: {
|
|
|
|
options: {
|
2020-03-21 02:54:23 +00:00
|
|
|
cache: true
|
2020-03-15 08:38:55 +00:00
|
|
|
},
|
2017-01-09 15:37:01 +00:00
|
|
|
all: [
|
2020-03-15 08:38:55 +00:00
|
|
|
'**/*.js{,on}',
|
2017-01-09 15:37:01 +00:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2020-03-15 08:38:55 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2017-01-09 15:37:01 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|