|
@ -63,6 +63,9 @@ class LocalWebServer extends MiddlewareStack { |
|
|
|
|
|
|
|
|
if (options.config) { |
|
|
if (options.config) { |
|
|
tool.stop(JSON.stringify(options, null, ' '), 0) |
|
|
tool.stop(JSON.stringify(options, null, ' '), 0) |
|
|
|
|
|
} else if (options.version) { |
|
|
|
|
|
const pkg = require(path.resolve(__dirname, '..', 'package.json')) |
|
|
|
|
|
tool.stop(pkg.version) |
|
|
} else { |
|
|
} else { |
|
|
const server = this.getServer() |
|
|
const server = this.getServer() |
|
|
server.listen(options.port, onServerUp.bind(null, options, server.isHttps)) |
|
|
server.listen(options.port, onServerUp.bind(null, options, server.isHttps)) |
|
|