chore(cli): cli v0.5.0

This commit is contained in:
Roman Hotsiy 2018-06-25 14:43:18 +03:00
parent 20191e3e09
commit 7daa070311
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 6 additions and 6 deletions

View File

@ -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)`
};
};
</script>`,
redocHead: ssr
? (cdn
? '<script src="https://unpkg.com/redoc@next/bundles/redoc.standalone.js"></script>'
: `<script>${redocStandaloneSrc}</script>`) + css
? '<script src="https://unpkg.com/redoc@next/bundles/redoc.standalone.js"></script>'
: `<script>${redocStandaloneSrc}</script>`) + css
: '<script src="redoc.standalone.js"></script>',
title,
});

View File

@ -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",