forked from minnojs/minno-time
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
63 lines (56 loc) · 1.24 KB
/
Gruntfile.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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
files: ['src/js/'],
options: {
ignores: ['src/js/libs/*.js', 'src/js/r.js'],
"evil": true,
"browser": true,
"trailing": true,
"curly":true,
"immed":true,
"latedef":true,
"newcap":true,
"noarg":true,
"sub":true,
"undef":true,
"unused":true,
"eqnull":true,
"node":true,
"expr":true,
"laxcomma":true,
"globals": { "define": false, "require": false }
}
},
requirejs: {
compile : {
options : {
// Creates a js-optimized folder at the same folder level as your "js" folder and places the optimized project there
dir: "js-optimized",
// Tells Require.js to look at main.js for all shim and path configurations
mainConfigFile: 'js/main.js',
// Modules to be optimized:
modules: [
{
name: "main"
}
]
}
}
},
docco: {
tutorials : {
src : ['tutorials/*.js'],
options : {
output: 'docs'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-docco');
// Default task(s).
grunt.registerTask('default', ['jshint','docco']);
};