Files
jquery.uls/Gruntfile.js
Santhosh Thottingal ab9b01444f Update to latest grunt
Change-Id: I69701a230426af9fa22d3cd312cb24bdc6cf5072
2013-08-01 15:13:00 +05:30

33 lines
847 B
JavaScript

/*!
* Grunt file
*
* @package jquery.i18n
*/
'use strict';
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
jshint: {
options: JSON.parse( grunt.file.read( '.jshintrc' )
.replace( /\/\*(?:(?!\*\/)[\s\S])*\*\//g, '' ).replace( /\/\/[^\n\r]*/g, '' ) ),
all: ['src/jquery.uls.core.js',
'src/jquery.uls.lcd.js',
'src/jquery.uls.data.utils.js',
'src/jquery.uls.languagefilter.js',
'src/jquery.uls.regionfilter.js' ]
},
qunit: {
all: ['test/index.html']
}
} );
grunt.registerTask( 'lint', ['jshint'] );
grunt.registerTask( 'unit', ['qunit'] );
grunt.registerTask( 'test', ['lint', 'unit'] );
grunt.registerTask( 'default', ['test'] );
};