diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-06 13:49:51 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-06 13:49:51 -0700 |
commit | fde66ed8494ddbc3e6e60bc8162fd97a1d1d5ac2 (patch) | |
tree | e8fb79ea768b957de6ad4cddb307fe38074108d0 /bin | |
parent | abce29866e359e78fd1d18b70e7a1291b6200cb5 (diff) | |
download | gitbook-fde66ed8494ddbc3e6e60bc8162fd97a1d1d5ac2.zip gitbook-fde66ed8494ddbc3e6e60bc8162fd97a1d1d5ac2.tar.gz gitbook-fde66ed8494ddbc3e6e60bc8162fd97a1d1d5ac2.tar.bz2 |
bin/build after generation return all the options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/build.js | 4 | ||||
-rwxr-xr-x | bin/gitbook.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/build.js b/bin/build.js index 49978b8..bea8ff9 100644 --- a/bin/build.js +++ b/bin/build.js @@ -47,8 +47,8 @@ var buildFunc = function(dir, options) { }) .then(function(output) { console.log("Successfuly built !"); - }, utils.logError) - .then(_.constant(outputDir)); + return output; + }, utils.logError); }; module.exports = buildFunc;
\ No newline at end of file diff --git a/bin/gitbook.js b/bin/gitbook.js index ef842fb..136c2a5 100755 --- a/bin/gitbook.js +++ b/bin/gitbook.js @@ -42,10 +42,10 @@ buildCommand(prog .option('-p, --port <port>', 'Port for server to listen on', 4000), function(dir, options) { buildFunc(dir, options) - .then(function(outputDir) { + .then(function(_options) { console.log(); console.log('Starting server ...'); - return utils.serveDir(outputDir, options.port) + return utils.serveDir(_options.output, options.port) .fail(utils.logError); }) .then(function() { |