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 Jun 7, 2023
2 parents a6f4de3 + 0f4965c commit a951917
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
Original file line number Diff line number Diff line change
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 a951917

Please sign in to comment.