Gruntfile.js
1.29 KB
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
// Gruntfile.js
module.exports = function (grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
grunt.initConfig({
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
unused: true,
boss: true,
eqnull: true,
globals: {}
},
gruntfile: {
src: 'Gruntfile.js',
options: {
node: true
}
},
node_libs: {
src: ['lib/spooky.js', 'lib/spooky/**/*.js'],
options: {
node: true
}
},
phantom_libs: {
src: ['lib/bootstrap.js', 'lib/bootstrap/**/*.js'],
options: {
phantom: true,
browser: true,
globals: {
patchRequire: true,
module: true
}
}
},
tests: {
src: ['tests/test/**/*.js'],
options: {
phantom: true,
node: true,
browser: true,
globals: {
it: true,
describe: true,
beforeEach: true,
afterEach: true
}
}
}
}
});
grunt.registerTask('default', []);
};