Skip to content

Commit 429e4d1

Browse files
committed
Update to gitbook - 0.2.3
1 parent fa742a6 commit 429e4d1

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

Gruntfile.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ module.exports = function (grunt) {
44
grunt.loadNpmTasks('grunt-gitbook');
55
grunt.loadNpmTasks('grunt-gh-pages');
66
grunt.loadNpmTasks('grunt-contrib-clean');
7+
grunt.loadNpmTasks('grunt-http-server');
78

89
grunt.initConfig({
910
'gitbook': {
1011
development: {
11-
dest: path.join(__dirname, ".grunt/gitbook"),
12+
output: path.join(__dirname, ".grunt/gitbook"),
1213
input: "./",
1314
title: "Mac OS X Setup Guide",
1415
description: "Guide to setting up developer environment on OS X",
@@ -23,9 +24,29 @@ module.exports = function (grunt) {
2324
},
2425
'clean': {
2526
files: '.grunt'
27+
},
28+
'http-server': {
29+
'dev': {
30+
// the server root directory
31+
root: '.grunt/gitbook',
32+
33+
port: 4000,
34+
host: "127.0.0.1",
35+
36+
showDir : true,
37+
autoIndex: true,
38+
defaultExt: "html",
39+
40+
//wait or not for the process to finish
41+
runInBackground: false
42+
}
2643
}
2744
});
2845

46+
grunt.registerTask('test', [
47+
'gitbook',
48+
'http-server'
49+
]);
2950
grunt.registerTask('publish', [
3051
'gitbook',
3152
'gh-pages',

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
"url": "https://github.com/sb2nov/mac-setup/issues"
2424
},
2525
"homepage": "http://sourabhbajaj/mac-setup",
26+
"dependencies": {},
2627
"devDependencies": {
27-
"grunt": "^0.4.4",
28+
"grunt": "0.4.1",
2829
"grunt-contrib-clean": "~0.5.0",
2930
"grunt-gh-pages": "0.9.1",
30-
"grunt-gitbook": "0.1.1"
31+
"grunt-gitbook": "0.2.3"
3132
},
3233
"peerDependencies": {
33-
"grunt": "~0.4.1"
34+
"grunt": "0.4.1"
3435
}
3536
}

0 commit comments

Comments
 (0)