View Source mix dog.gen.stories (Doggo v0.8.2)

Generates Phoenix Storybook modules for all configured components.

Usage

Write stories for all configured components:

mix dog.gen.stories -m MyAppWeb.CoreComponents -o storybook -a

Write the story for a single component:

mix dog.gen.stories -m MyAppWeb.CoreComponents -o storybook -c button

Options

  • -m, --module: The module where the Doggo components are compiled.
  • -o, --output: The Storybook folder.
  • -c, --component: The name of the component.
  • -a, --all: Write stories for all configured components.
  • -f, --force: Force folder creation and overwrite existing stories.