forked from wikimedia/jquery.uls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
32 lines (30 loc) · 847 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*!
* 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'] );
};