Skip to content

Commit

Permalink
chore(cli): cli v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Jun 25, 2018
1 parent 20191e3 commit 7daa070
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ YargsParser.command(
handleError(e);
}
},
)
)
.demandCommand()
.options('t', {
alias: 'template',
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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,
});
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 7daa070

Please sign in to comment.