Skip to content

Commit

Permalink
add rw storybook --ci option passing --smoke-test
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidprice authored and virtuoushub committed Dec 7, 2021
1 parent 633ea28 commit 0bfefdb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/cli/src/commands/storybook.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ export const builder = (yargs) => {
type: 'boolean',
default: true,
})
.option('ci', {
describe:
"CI mode plus Smoke-test (skip prompts, don't open browser, exit after successful start)",
type: 'boolean',
default: false,
})
}

export const handler = ({
Expand All @@ -45,6 +51,7 @@ export const handler = ({
build,
buildDirectory,
managerCache,
ci,
}) => {
const cwd = getPaths().web.base

Expand Down Expand Up @@ -72,6 +79,7 @@ export const handler = ({
build &&
`--output-dir "${path.join(getPaths().web.base, buildDirectory)}"`,
!open && '--ci',
ci && '--ci --smoke-test',
].filter(Boolean),
{
stdio: 'inherit',
Expand Down

0 comments on commit 0bfefdb

Please sign in to comment.