2015-06-15 23:31:25 +00:00
|
|
|
/*!
|
|
|
|
* Grunt file
|
|
|
|
*
|
|
|
|
* @package SpamBlacklist
|
|
|
|
*/
|
|
|
|
|
2018-11-29 17:14:03 +00:00
|
|
|
/* eslint-env node, es6 */
|
2015-06-15 23:31:25 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2018-11-29 17:14:03 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
2015-06-15 23:31:25 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2018-11-29 17:14:03 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-15 23:31:25 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
|
|
|
banana: conf.MessagesDirs,
|
2018-11-29 17:14:03 +00:00
|
|
|
eslint: {
|
2019-04-03 23:25:25 +00:00
|
|
|
options: {
|
|
|
|
cache: true
|
|
|
|
},
|
2017-04-21 15:59:57 +00:00
|
|
|
all: [
|
2020-04-07 10:13:11 +00:00
|
|
|
'**/*.{js,json}',
|
2019-05-07 17:44:29 +00:00
|
|
|
'!{vendor,node_modules}/**'
|
2015-06-15 23:31:25 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2019-05-07 17:44:29 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-15 23:31:25 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|