Use new declarative Storybook configs
noticed that the title of the storybook is the default "storybook" so i decided to update the configurations! as https://www.npmjs.com/package/@storybook/addon-options is deprecated
blog post here: https://medium.com/storybookjs/declarative-storybook-configuration-49912f77b78
Changes:
- created
main.jspreview.jsmanager.jsforstorybookandstorybook-css - updated
storybook-cssto use full control mode (same webpack config asstorybook)
Testing:
- run
yarn storybook[:css]andyarn gh-pages:build
Follow ups:
- usage of
withInfoneeds to be updated. the current way is deprecated - configs between
storybookandstorybook-cssis almost identical.webpack.config.jsmain.jsand parts ofpreview.jscan be shared
This still seems worth including at some point; we just haven't gotten to it. I'd prefer to leave it open, if that's alright.
No problem! I can update to the latest storybook versions as well
Thanks, that’d be great!
Codecov Report
Merging #1952 (06b62de) into master (3ddb7b5) will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## master #1952 +/- ##
=======================================
Coverage 79.56% 79.56%
=======================================
Files 57 57
Lines 2285 2285
Branches 635 635
=======================================
Hits 1818 1818
Misses 274 274
Partials 193 193
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 3ddb7b5...06b62de. Read the comment docs.