forked from FabMo/FabMo-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
66 lines (65 loc) · 2.15 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
64
65
66
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
'clean' : {
'docs' : ['docs-dist']
},
'groc': {
javascript: ["*.js","*.md","**/*.js","**/*.md"],
options: {
"out": "docs-dist/",
"except":[
"Gruntfile.js",
"dashboard/apps",
"dashboard/apps/**",
"dashboard/build",
"dashboard/build/**",
"node_modules",
"node_modules/**",
"dashboard/static",
"dashboard/static/**",
"docs-dist",
"docs-dist/**"
],
"repository-url" : "https://github.com/FabMo/FabMo-Engine.git"
},
},
'gh-pages': {
options: {
base: 'docs-dist'
},
src: ['**']
},
'open' : {
'file' : {
path : 'docs-dist/index.html'
}
},
'availabletasks' : {
'tasks' : {
options: {
showTasks: ['user'],
filter: 'exclude',
tasks: ['availabletasks', 'default']
}
}
},
'apidoc' : {
myapp: {
src: "routes",
dest: "docs-dist/api",
debug: true
}
}
});
grunt.loadNpmTasks('grunt-groc');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-gh-pages');
grunt.loadNpmTasks('grunt-open');
grunt.loadNpmTasks('grunt-available-tasks');
grunt.loadNpmTasks('grunt-apidoc');
grunt.registerTask('doc', 'Generate engine documentation in HTML format.', ['clean', 'groc', 'apidoc']);
grunt.registerTask('doc-dist', 'Generate documentation and publish to github-pages.', ['doc', 'gh-pages']);
grunt.registerTask('doc-view', 'Generate documentation and view locally in web browser.', ['doc', 'open']);
grunt.registerTask('default', 'availabletasks');
};