mix dog.gen.stories (Doggo v0.15.0)

Copy Markdown View Source

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

Command line options

  • -m, --module - the module the Doggo components are compiled into.
  • -o, --output - the Storybook folder.
  • -c, --component - the name of a single component to write.
  • -a, --all - writes stories for all configured components.
  • -f, --force - creates the folder if needed and overwrites existing stories.