From b4996f37b8bc6fd1f04195b027daf04002bed6e1 Mon Sep 17 00:00:00 2001 From: Scott Corgan Date: Wed, 4 Jun 2014 09:50:33 -0700 Subject: [PATCH] Update server command for Superstatic 0.11.0. Closes #95 --- lib/commands/server.js | 11 +---------- package.json | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/commands/server.js b/lib/commands/server.js index 4cf9e64..3ad5f35 100644 --- a/lib/commands/server.js +++ b/lib/commands/server.js @@ -6,17 +6,8 @@ module.exports = function (cli) { command.description('start server for local development'); command.handler(function (customDir, done) { - var childProcessArgs = []; - var port = cli.args.args.p || cli.args.args.port; - var host = cli.args.args.host; - - if (customDir && typeof customDir !== 'object') childProcessArgs.unshift(customDir); - if (port) childProcessArgs = childProcessArgs.concat('-p', port); - if (host) childProcessArgs = childProcessArgs.concat('-h', host); - if (host) childProcessArgs = childProcessArgs.concat('--logging'); - var cmd = path.resolve(__dirname, '../../node_modules/.bin/superstatic'); - var server = spawn(cmd , childProcessArgs); + var server = spawn(cmd , process.argv.splice(3)); server.stdout.on('data', function (data) { cli.log(data.toString()); diff --git a/package.json b/package.json index 27f137a..3bea9c9 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "request": "2.36.x", "semver": "2.3.x", "sizer": "0.1.x", - "superstatic": "~0.10.1", + "superstatic": "~0.11.0", "tarzan": "0.1.x", "through": "~2.3.4", "update-notifier": "~0.1.8",