bin/build after generation return all the options

This commit is contained in:
Samy Pessé
2014-04-06 13:49:51 -07:00
parent abce29866e
commit fde66ed849
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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() {