forked from leny/konpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
46 lines (39 loc) · 1.05 KB
/
Gruntfile.coffee
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
path = require "path"
module.exports = ( grunt ) ->
pkg = require './package'
grunt.loadNpmTasks "grunt-gitbook"
grunt.loadNpmTasks "grunt-gh-pages"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadNpmTasks "grunt-http-server"
grunt.initConfig
"gitbook":
konpa:
input: "./"
title: pkg.name
description: pkg.description
github: "leny/konpa"
"gh-pages":
options:
base: "_book"
src: [ "**" ]
"clean":
files: "_book"
"http-server":
"dev":
root: "_book"
port: 4000
host: "127.0.0.1"
showDir: yes
autoIndex: yes
defaultExt: "html"
runInBackground: no
grunt.registerTask "test", [
"gitbook"
"http-server"
]
grunt.registerTask "publish", [
"gitbook"
"gh-pages"
"clean"
]
grunt.registerTask "default", "gitbook"