Skip to content

Commit

Permalink
Merge pull request #22957 from storybookjs/feat/silence-compodoc-on-q…
Browse files Browse the repository at this point in the history
…uiet-flag

Angular: Silence compodoc when running storybook with --quiet
  • Loading branch information
yannbf authored and shilman committed Jun 8, 2023
1 parent 3317178 commit bfb602e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions code/frameworks/angular/src/builders/start-storybook/index.ts
Expand Up @@ -58,9 +58,13 @@ const commandBuilder: BuilderHandlerFn<StorybookBuilderOptions> = (options, cont
const builder = from(setup(options, context)).pipe(
switchMap(({ tsConfig }) => {
const runCompodoc$ = options.compodoc
? runCompodoc({ compodocArgs: options.compodocArgs, tsconfig: tsConfig }, context).pipe(
mapTo({ tsConfig })
)
? runCompodoc(
{
compodocArgs: [...options.compodocArgs, ...(options.quiet ? ['--silent'] : [])],
tsconfig: tsConfig,
},
context
).pipe(mapTo({ tsConfig }))
: of({});

return runCompodoc$.pipe(mapTo({ tsConfig }));
Expand Down

0 comments on commit bfb602e

Please sign in to comment.