forked from qunitjs/qunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.js
80 lines (77 loc) · 1.37 KB
/
grunt.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*global config:true, task:true*/
module.exports = function( grunt ) {
grunt.initConfig({
pkg: '<json:package.json>',
qunit: {
// TODO include 'test/logs.html' as well
qunit: 'test/index.html',
addons: [
'addons/canvas/canvas.html',
'addons/close-enough/close-enough.html',
'addons/composite/composite-demo-test.html'
]
},
lint: {
qunit: 'qunit/qunit.js',
addons: 'addons/**/*.js',
grunt: 'grunt.js'
// TODO need to figure out which warnings to fix and which to disable
// tests: 'test/test.js'
},
jshint: {
qunit: {
options: {
onevar: true,
browser: true,
bitwise: true,
curly: true,
trailing: true,
immed: true,
latedef: false,
newcap: true,
noarg: false,
noempty: true,
nonew: true,
sub: true,
undef: true,
eqnull: true,
proto: true
},
globals: {
jQuery: true,
exports: true
}
},
addons: {
options: {
browser: true,
curly: true,
eqnull: true,
eqeqeq: true,
expr: true,
evil: true,
jquery: true,
latedef: true,
noarg: true,
onevar: true,
smarttabs: true,
trailing: true,
undef: true
},
globals: {
module: true,
test: true,
asyncTest: true,
expect: true,
start: true,
stop: true,
QUnit: true
}
},
tests: {
}
}
});
// Default task.
grunt.registerTask('default', 'lint qunit');
};