Skip to content

feat(heft-storybook-plugin): add --quiet opt-out and --no-open flag#5681

Merged
octogonz merged 2 commits into
microsoft:mainfrom
UberMouse:allow-overriding-quiet-flag-in-storybook
May 23, 2026
Merged

feat(heft-storybook-plugin): add --quiet opt-out and --no-open flag#5681
octogonz merged 2 commits into
microsoft:mainfrom
UberMouse:allow-overriding-quiet-flag-in-storybook

Conversation

@UberMouse
Copy link
Copy Markdown
Contributor

@UberMouse UberMouse commented Mar 4, 2026

Summary

Two new opt-in behaviours for @rushstack/heft-storybook-plugin:

  • quiet option (plugin options in heft.json): controls whether --quiet is passed to the Storybook CLI. Defaults to true (existing behaviour). Set to false to suppress --quiet, which is useful when --verbose is not wanted but more Storybook output is needed.

  • --no-open CLI flag: when passed alongside --storybook in serve mode, prevents Storybook from automatically opening a browser window. Useful for CI-adjacent tooling or daemon processes that start Storybook programmatically.

Changes

  • heft-plugin.json — registers the --no-open parameter on the storybook task
  • StorybookPlugin.ts — wires up both behaviours
  • schemas/storybook.schema.json — adds quiet to the options schema

Test plan

  • heft build --storybook--quiet is passed by default (no change)
  • heft build --storybook with "quiet": false in plugin options — --quiet is omitted
  • heft start --storybook --no-open — Storybook starts without opening a browser tab
  • heft build --storybook --no-open--no-open is silently ignored in build mode (only applies to serve mode)

@UberMouse UberMouse force-pushed the allow-overriding-quiet-flag-in-storybook branch from 564ef4c to e3448fa Compare May 22, 2026 04:21
…h in serve mode

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@UberMouse UberMouse changed the title allow omitting --quiet flag in heft-storybook-plugin without requiring --verbose feat(heft-storybook-plugin): add --quiet opt-out and --no-open flag May 22, 2026
@UberMouse
Copy link
Copy Markdown
Contributor Author

@octogonz can I get this looked at? Thanks 🙏

@octogonz
Copy link
Copy Markdown
Collaborator

@UberMouse sorry this didn't get reviewed sooner!

@octogonz octogonz merged commit 7292bf8 into microsoft:main May 23, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants