{"size": 1213, "ext": "js", "max_stars_repo_path": "apps/mediawiki/htdocs/extensions/Cite/Gruntfile.js", "max_stars_repo_name": "ramonperezVRB/WikiVote", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "apps/mediawiki/htdocs/extensions/Cite/Gruntfile.js", "max_issues_repo_name": "ramonperezVRB/WikiVote", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "apps/mediawiki/htdocs/extensions/Cite/Gruntfile.js", "max_forks_repo_name": "ramonperezVRB/WikiVote", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.3285714286, "max_line_length": 92, "alphanum_fraction": 0.5028854081}
/*!
 * Grunt file
 *
 * @package Cite
 */

/*jshint node:true */
module.exports = function ( grunt ) {
	'use strict';
	grunt.loadNpmTasks( 'grunt-contrib-jshint' );
	grunt.loadNpmTasks( 'grunt-jscs' );
	grunt.loadNpmTasks( 'grunt-jsonlint' );
	grunt.loadNpmTasks( 'grunt-banana-checker' );
	grunt.loadNpmTasks( 'grunt-stylelint' );
	grunt.initConfig( {
		jshint: {
			options: {
				jshintrc: true
			},
			all: [
				'**/*.js',
				'{.jsduck,build}/**/*.js',
				'modules/**/*.js',
				'!node_modules/**'
			]
		},
		banana: {
			core: [ 'i18n/' ],
			ve: [ 'modules/ve-cite/i18n/' ]
		},
		jscs: {
			fix: {
				options: {
					fix: true
				},
				src: '<%= jshint.all %>'
			},
			main: {
				src: '<%= jshint.all %>'
			}
		},
		stylelint: {
			core: {
				src: [
					'**/*.css',
					'!modules/ve-cite/**',
					'!node_modules/**'
				]
			},
			've-cite': {
				options: {
					configFile: 'modules/ve-cite/.stylelintrc'
				},
				src: [
					'modules/ve-cite/**/*.css'
				]
			}
		},
		jsonlint: {
			all: [
				'**/*.json',
				'!node_modules/**'
			]
		}
	} );

	grunt.registerTask( 'test', [ 'jshint', 'jscs:main', 'stylelint', 'jsonlint', 'banana' ] );
	grunt.registerTask( 'default', 'test' );
};
