-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
42 lines (36 loc) · 1014 Bytes
/
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
/*!
* mower's Gruntfile
* http://www.infinitus.com.cn/
* Copyright (c) 2014 Infinitus, Inc.
* Licensed under MIT (https://github.com/macula-projects/mower/blob/master/LICENSE-MIT)
*/
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
'input': 'macula-docs',
'output': 'macula-docs/_book',
'gh-pages': {
options: {
base: 'macula-docs/_book'
},
src: '**/*'
},
'shell': {
options: {
stderr: false
},
target: {
command: 'gitbook build <%= input %> <%= output %>'
}
},
'clean': {
files: 'macula-docs/_book'
}
});
//load grunt plugin task
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-gh-pages');
grunt.registerTask('docs', ['clean', 'shell', 'gh-pages']);
};