2015-06-15 23:32:37 +00:00
|
|
|
/*!
|
|
|
|
* Grunt file
|
|
|
|
*
|
|
|
|
* @package ParserFunctions
|
|
|
|
*/
|
|
|
|
|
2019-05-07 17:10:30 +00:00
|
|
|
/* eslint-env node, es6 */
|
2015-06-15 23:32:37 +00:00
|
|
|
module.exports = function ( grunt ) {
|
2019-05-07 17:10:30 +00:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
|
|
|
2015-06-15 23:32:37 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2019-05-07 17:10:30 +00:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-15 23:32:37 +00:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
|
|
|
banana: conf.MessagesDirs,
|
2019-05-07 17:10:30 +00:00
|
|
|
eslint: {
|
|
|
|
options: {
|
2019-05-07 17:13:47 +00:00
|
|
|
extensions: [ '.js', '.json' ],
|
2019-05-07 17:10:30 +00:00
|
|
|
cache: true
|
|
|
|
},
|
2017-04-21 15:59:56 +00:00
|
|
|
all: [
|
2019-05-07 17:13:47 +00:00
|
|
|
'**/*.js{,on}',
|
2019-05-07 17:10:30 +00:00
|
|
|
'!{vendor,node_modules}/**'
|
2017-04-21 15:59:56 +00:00
|
|
|
]
|
2015-06-15 23:32:37 +00:00
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2019-05-07 17:13:47 +00:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-15 23:32:37 +00:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|