-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(storybook): update v1 syntax to use Storybook v6 #568
chore(storybook): update v1 syntax to use Storybook v6 #568
Commits on Aug 22, 2024
-
chore(storybook): update v1 syntax to use Storybook v6
- while the deps used Storybook v6, the configuration and stories themselves were still on a legacy v5 format - v6 had backward compat for v5, but v7 does not, so this needs upgrading/migrating - or well, v7 has some legacy mode for it that can be enabled with some config, but it is entirely gone in v8 - migrate `storiesOf` to CSF per https://storybook.js.org/docs/7/migration-guide#storiesof-to-csf - then had to do a bunch of manual changes to get back mostly the same previous indentation (with some minor differences where there were mistakes or inconsistencies) - tried to keep the diff as small as possible - CSF is still valid through to latest v8 Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 329a56f - Browse repository at this point
Copy the full SHA 329a56fView commit details -
chore(storybook): convert v1 config to use Storybook v6
- modified version of v2's config Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d49e4a9 - Browse repository at this point
Copy the full SHA d49e4a9View commit details -
fixup config a bit -- take more from prev webpack config
- `ts-loader` is necessary to handle the `import type` syntax - custom `tsconfig.json` doesn't seem necessary though - use same SASS config - plain CSS config not needed though bc PostCSS already runs by default Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 704c2c2 - Browse repository at this point
Copy the full SHA 704c2c2View commit details -
rename to
.stories.tsx
and removeindex
- the conventional format - also had some problems finding stories without this change Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3def63d - Browse repository at this point
Copy the full SHA 3def63dView commit details -
fix deprecation warning re:
storyName
- per https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations - migrate `.story.name` -> `.storyName` - not sure why the automigration didn't do this and instead used the deprecated name 😕 Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 73faf46 - Browse repository at this point
Copy the full SHA 73faf46View commit details -
also fix history deprecation warning
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5132972 - Browse repository at this point
Copy the full SHA 5132972View commit details -
attempt to load CSS properly but still fail
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a9cc062 - Browse repository at this point
Copy the full SHA a9cc062View commit details -
improve perf with built in loader for TS
- remove `ts-loader` as not necessary - plus some settings for Storybook's TS loader preset Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8db46bd - Browse repository at this point
Copy the full SHA 8db46bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for e6e2da1 - Browse repository at this point
Copy the full SHA e6e2da1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 166bc0a - Browse repository at this point
Copy the full SHA 166bc0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c93f6d0 - Browse repository at this point
Copy the full SHA c93f6d0View commit details -
attempt to reduce diff a bit more hackily
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c758f0c - Browse repository at this point
Copy the full SHA c758f0cView commit details -
one more diff reduction with one hackishness
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 62abbf8 - Browse repository at this point
Copy the full SHA 62abbf8View commit details -
diff reduction with older wacky syntax
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 460c1b3 - Browse repository at this point
Copy the full SHA 460c1b3View commit details -
slightly better syntax than previous while retaining indentation
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ae3a40f - Browse repository at this point
Copy the full SHA ae3a40fView commit details -
last diff reduction/indentation change
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 51b30ec - Browse repository at this point
Copy the full SHA 51b30ecView commit details -
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 80f3ce9 - Browse repository at this point
Copy the full SHA 80f3ce9View commit details