From 7daa070311d742c02dff2535fdc43942ffdd618e Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 25 Jun 2018 14:43:18 +0300 Subject: [PATCH] chore(cli): cli v0.5.0 --- cli/index.ts | 10 +++++----- cli/package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cli/index.ts b/cli/index.ts index f5a03240..bce967b8 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -120,7 +120,7 @@ YargsParser.command( handleError(e); } }, -) + ) .demandCommand() .options('t', { alias: 'template', @@ -169,7 +169,7 @@ async function serve(port: number, pathToSpec: string, options: Options = {}) { if (options.watch && existsSync(pathToSpec)) { const pathToSpecDirectory = dirname(pathToSpec); const watchOptions = { - recursive: true + recursive: true, }; watch( @@ -243,13 +243,13 @@ async function getPageHTML( ssr ? 'hydrate(__redoc_state, container);' : `init("spec.json", ${JSON.stringify(redocOptions)}, container)` - }; + }; `, redocHead: ssr ? (cdn - ? '' - : ``) + css + ? '' + : ``) + css : '', title, }); diff --git a/cli/package.json b/cli/package.json index 7552b779..0e82a14a 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "redoc-cli", - "version": "0.4.0", + "version": "0.5.0", "description": "ReDoc's Command Line Interface", "main": "index.js", "bin": "index.js",