-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Gruntfile.js
42 lines (39 loc) · 1.09 KB
/
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
33
34
35
36
37
38
39
40
41
42
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
all: ['src/{,*/}*.js']
},
connect: {
server: {
options: {
port: 9001,
base: './'
}
}
},
qunit: {
all: {
options: {
urls: [
'http://localhost:9001/test/test-for-jquery-1.11.1.html',
'http://localhost:9001/test/test-for-jquery-1.7.2.html',
'http://localhost:9001/test/test-for-jquery-1.8.3.html',
'http://localhost:9001/test/test-for-jquery-1.9.1.html',
'http://localhost:9001/test/test-for-jquery-2.1.1.html',
'http://localhost:9001/test/test-for-jquery-3.0.0.html',
'http://localhost:9001/test/test-for-zepto.html'
]
}
}
}
});
// A convenient task alias.
grunt.registerTask('test', ['jshint', 'connect', 'qunit']);
grunt.registerTask('default', ['test']);
};