-
Notifications
You must be signed in to change notification settings - Fork 33
/
grunt.js
45 lines (42 loc) · 900 Bytes
/
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
module.exports = function(grunt) {
grunt.initConfig({
meta: {
banner: '/* Copyright 2012 Greg Smith. Licensed under the MIT License. http://incompl.github.com/boxbox/ */'
},
min: {
'boxbox.min.js': ['<banner>', 'boxbox.js']
},
lint: {
files: ['grunt.js', 'boxbox.js']
},
watch: {
files: ['boxbox.js'],
tasks: 'min'
},
qunit: {
all: ['test/index.html']
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: false,
newcap: false, // for box2dweb code
noarg: true,
sub: true,
undef: true,
eqnull: true,
browser: true
},
globals: {
Box2D: true,
Vector: true,
module: true,
console: true
}
},
uglify: {}
});
grunt.registerTask('default', 'lint min');
};