ng add @ngx-storybook/schematics
This schematic automatically adjusts .storybook/config.js
to include all stories.ts
files inside the src
folder, not only from src/stories
.
ng g @ngx-storybook/schematics:c button
This command creates a module, component and a story with the given name.
ng g @ngx-storybook/schematics:s my-stories
This command creates a stories file with the given name.