2015-06-15 15:55:31 -06:00
|
|
|
/*!
|
|
|
|
* Grunt file
|
|
|
|
*
|
|
|
|
* @package ContactPage
|
|
|
|
*/
|
|
|
|
|
2019-12-07 09:01:25 -07:00
|
|
|
/* eslint-env node */
|
2015-06-15 15:55:31 -06:00
|
|
|
module.exports = function ( grunt ) {
|
2019-12-07 09:01:25 -07:00
|
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
2015-06-15 15:55:31 -06:00
|
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
2019-12-07 09:01:25 -07:00
|
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
2015-06-15 15:55:31 -06:00
|
|
|
|
|
|
|
grunt.initConfig( {
|
2016-07-08 15:11:10 -06:00
|
|
|
banana: conf.MessagesDirs,
|
2019-12-07 09:01:25 -07:00
|
|
|
eslint: {
|
2019-12-08 02:23:55 -07:00
|
|
|
options: {
|
2019-12-15 20:13:39 -07:00
|
|
|
extensions: [ '.js', '.json' ],
|
|
|
|
cache: true
|
2019-12-08 02:23:55 -07:00
|
|
|
},
|
2017-04-21 09:59:56 -06:00
|
|
|
all: [
|
2019-12-08 02:23:55 -07:00
|
|
|
'**/*.js{,on}',
|
2017-04-21 09:59:56 -06:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
|
|
|
]
|
|
|
|
},
|
2015-06-15 15:55:31 -06:00
|
|
|
jsonlint: {
|
|
|
|
all: [
|
|
|
|
'**/*.json',
|
2017-11-11 15:40:57 -07:00
|
|
|
'!node_modules/**',
|
|
|
|
'!vendor/**'
|
2015-06-15 15:55:31 -06:00
|
|
|
]
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2019-12-08 02:23:55 -07:00
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
2015-06-15 15:55:31 -06:00
|
|
|
grunt.registerTask( 'default', 'test' );
|
|
|
|
};
|