| Current Path : /var/www/html/mediawiki-1.43.1/extensions/PageProperties/ |
| Current File : /var/www/html/mediawiki-1.43.1/extensions/PageProperties/Gruntfile.js |
/* eslint-env node, es6 */
module.exports = function ( grunt ) {
const conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
options: {
cache: true
},
all: [
'**/*.{js,json}',
'!node_modules/**',
'!vendor/**',
'!resources/datatables/**',
'!resources/intl-tel-input/**',
'!resources/papaparse/**',
'!resources/promise-polyfill/**',
'!resources/ajv-validator/**'
]
},
stylelint: {
all: [
'**/*.{css,less}',
'!node_modules/**',
'!vendor/**',
'!resources/datatables/**',
'!resources/intl-tel-input/**',
'!resources/papaparse/**',
'!resources/promise-polyfill/**',
'!resources/ajv-validator/**'
]
},
banana: conf.MessagesDirs
} );
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};