Your IP : 216.73.216.54


Current Path : /var/www/html/mediawiki/extensions/PageProperties/
Upload File :
Current File : /var/www/html/mediawiki/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' );
};