Files
mediawiki-extensions-Univer…/Gruntfile.js
Siebrand Mazeland 6a2b2e0bba Update test files
- Updated versions and order of checkers.
- Some consistency updates in Gruntfile.js.
- Updates to make jscs pass.

Change-Id: I7ed93596ff383dc713bd17af2da0472be934d59d
2016-02-18 18:51:37 +00:00

39 lines
721 B
JavaScript

/*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.initConfig( {
jshint: {
options: {
jshintrc: true
},
all: [
'**/*.js',
'!lib/**',
'!node_modules/**',
'!resources/js/ext.uls.webfonts.repository.js'
]
},
jscs: {
src: '<%= jshint.all %>'
},
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
]
},
banana: {
all: 'i18n'
}
} );
grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};