-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgrunt.js
96 lines (88 loc) · 2.02 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*global config:true, task:true*/
module.exports = function(grunt) {
grunt.initConfig({
pkg : '<json:package.json>',
meta : {
banner : '/**\n' +
'* <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("m/d/yyyy") %>\n' +
'* <%= pkg.homepage %>\n' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;\n' +
'* Underscore.Nest is freely distributable under the MIT license.\n' +
'*/'
},
min : {
nest : {
dest : "underscore.nest.min.js",
src : [
"<banner>",
"underscore.nest.js"
]
}
},
qunit : {
urls : [
"http://localhost:8000/test/index.html"
]
},
lint : {
files : [
"grunt.js",
"underscore.nest.js",
"test/unit/**/*.js"
]
},
watch : {
files : "<config:lint.files>",
tasks : "lint qunit"
},
jshint : {
options : {
unused : true,
unuseds : true,
devel : true,
noempty : true,
forin : false,
evil : true,
maxerr : 100,
boss : true,
curly : true,
eqeqeq : true,
immed : true,
latedef : true,
newcap : true,
noarg : true,
sub : true,
undef : true,
eqnull : true,
browser : true,
bitwise : true,
loopfunc : true,
predef : [ "_", "exports", "define" ]
},
globals : {
QUnit : true,
module : true,
test : true,
asyncTest : true,
expect : true,
ok : true,
equals : true,
JSLitmus : true,
start : true,
stop : true,
$ : true,
strictEqual : true,
raises : true
}
},
uglify : {
"mangle" : {
"except" : [ "_", "$" ]
},
"squeeze" : {},
"codegen" : {}
}
});
// Default task.
grunt.registerTask('default', 'lint qunit min');
};