zuke.tools.storybook
@zuke/storybook 1.0.0: @zuke/storybook — typed [Storybook](https://storybook.js.org) CLI task wrappers for Zuke builds.
zuke on PyPI ↗ 4 symbols
Symbols
class StorybookBuildSettings(StorybookSettings) Settings for storybook build (the static build).
-
output_dir(path: str) -> SelfWrite the static build to this directory (
--output-dir). -
quiet_output() -> SelfSuppress the progress output, leaving warnings and errors (
--quiet). NamedquietOutputbecauseToolSettings.quiet()already means "do not stream the process output to the terminal", which is a different thing.
class StorybookDevSettings(StorybookSettings) Settings for storybook dev (the development server).
-
port(value: float) -> SelfServe on a specific port (
--port). -
host(value: str) -> SelfBind to a host/IP (
--host). -
no_open() -> SelfDo not open the browser on start (
--no-open). -
ci() -> SelfNever prompt and never open a browser (
--ci). A build step is not a terminal someone is watching: without this Storybook can stop on an interactive question and hang the run.
class StorybookSettings(ToolSettings) Base for all storybook subcommand settings: the binary is storybook, with the --config-dir option every subcommand accepts.
-
config_dir(path: str) -> SelfRead the configuration from this directory instead of
.storybook(--config-dir).
class StorybookTasks Typed task functions for the storybook CLI.
-
static async dev(ctx: ServiceContext, configure: Callable[[StorybookDevSettings], StorybookDevSettings] | None=None) -> ExecResultStart the development server:
storybook dev. -
static async build(ctx: ServiceContext, configure: Callable[[StorybookBuildSettings], StorybookBuildSettings] | None=None) -> ExecResultBuild the static Storybook:
storybook build.