- Updated versions and order of checkers. - Some consistency updates in Gruntfile.js. - Updates to make jscs pass. Change-Id: I7ed93596ff383dc713bd17af2da0472be934d59d
39 lines
721 B
JavaScript
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' );
|
|
};
|