Add Danger plugin to remind engineers about Storybook when modifying files in `vue_shared/`
To increase adoption of Storybook throughout our shared component directory - vue_shared/
- we could extend the Danger MR comment to prompt engineers to create a Story (.stories.js
file) for the component/s they are adding/modifying.
Example text:
When there isn't an existing Story for the component
This merge request changed Vue files in
vue_shared/
, but some of the Vue components don't have corresponding.stories.js
files. Please consider writing a story.
When there is an existing Story for the component, but it wasn't modified
This merge request changed Vue files in
vue_shared/
, but some of the corresponding.stories.js
files weren't modified. Please check that the Story is correctly documented.
Edited by Tom Quirk