-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
58 lines (51 loc) · 1.49 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
module.exports = function (grunt) {
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
clean : {
docs: ['docs'],
doks: ['doks']
},
connect: {
docs: {
options: {
port : 8000,
base : 'docs',
keepalive: true
}
},
doks: {
options: {
port : 8000,
base : 'doks',
keepalive: true
}
}
},
jsdoc : {
dist: {
src: ['docs-src/api.md', 'src/'],
jsdoc : 'node_modules/.bin/jsdoc',
options: {
configure : './conf.json',
destination: 'docs/api'
}
}
},
docker : {
dist: {
src : ['src/**/*.js'],
dest: 'doks'
}
}
});
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-connect');
/* JSDoc based docs */
grunt.loadNpmTasks('grunt-jsdoc');
grunt.registerTask('docs', ['clean:docs', 'jsdoc']);
grunt.registerTask('rtfm', ['docs', 'connect:docs']);
/* Docker based docs */
grunt.loadNpmTasks('grunt-docker');
grunt.registerTask('doks', ['clean:doks', 'docker']);
grunt.registerTask('rtfd', ['doks', 'connect:doks']);
};