2020-03-15 10:06:39 +00:00
|
|
|
/* eslint-env node */
|
2015-06-20 05:12:20 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2020-03-15 10:06:39 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
2015-06-20 05:12:20 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2020-03-15 10:06:39 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-20 05:12:20 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
2020-03-15 10:06:39 +00:00
|
|
|
banana: conf.MessagesDirs,
|
|
|
|
eslint: {
|
|
|
|
options: {
|
2020-03-21 05:53:52 +00:00
|
|
|
cache: true
|
2020-03-15 10:06:39 +00:00
|
|
|
},
|
2015-06-20 05:12:20 +00:00
|
|
|
all: [
|
2020-03-15 10:06:39 +00:00
|
|
|
'**/*.js{,on}',
|
2017-11-11 23:33:01 +00:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
2015-06-20 05:12:20 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2020-03-15 10:06:39 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-20 05:12:20 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|