happo / happo-plugin-storybook

A happo.io plugin for Storybook
MIT License
11 stars 5 forks source link

Possibility to filter stories with CLI param #10

Open jack-sf opened 5 years ago

jack-sf commented 5 years ago

Feature request: For example, npm run happo --only Button would only compile and run stories that have Button in their story name (or in the story filename).

trotzig commented 5 years ago

This is in fact a bug/quirk with the happo-plugin-storybook plugin. If you use the default Happo way of defining examples (via -happo.js files), you can run with the --only flag.

jack-sf commented 5 years ago

Yeah, but we could somehow enhance this plugin so it supports this --only option as well.