-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
76 lines (73 loc) · 2.15 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
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
qunit: {
files: ['test/client/index.html']
},
lint: {
src: 'app/**/*.js',
grunt: 'grunt.js',
app: 'app.js*',
tests: 'test/client/**/*.js'
},
jshint: {
options: {
jquery: true,
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
unused: false,
onevar: true,
boss: true,
eqnull: true,
browser: true,
devel: true,
trailing: true,
white: false,
maxcomplexity: 3
/*indent: 4 comment out until white/indent options are separated => https://github.com/jshint/jshint/issues/655 */
},
globals: {
Kort: true,
Ext: true,
L: true,
UrlLib: true
},
tests: {
globals: {
Ext: true,
L: true,
UrlLib: true,
urlLib: true,
asyncTest: true,
api_test: true,
deepEqual: true,
equal: true,
expect: true,
module: true,
notDeepEqual: true,
notEqual: true,
notStrictEqual: true,
ok: true,
QUnit: true,
raises: true,
start: true,
stop: true,
strictEqual: true,
test: true,
testSkip: true
}
}
}
});
// Default task.
grunt.registerTask('default', 'lint qunit concat min');
// Travis CI task.
grunt.registerTask('travis', 'lint qunit');
};