Skip to content

Commit

Permalink
chore: upgrade storybook from v7.5.3 to v7.6.19 (#732)
Browse files Browse the repository at this point in the history
* chore: upgrade storybook from v7.5.3 to v7.6.19

```
> npx storybook@7 upgrade --config-dir libs/storybook-host/.storybook
> npx storybook@7 automigrate --config-dir packages/components/.storybook
> npx storybook@7 automigrate --config-dir packages/icons/.storybook
```

Accept all migrations
Revert "storybook:build" script change.

* chore: run nx storybook v7 migration

```
> npx nx g @nx/storybook:migrate-7 --autoAcceptAllPrompts
```

* chore: install deps

```
> npm i
```
  • Loading branch information
WilliamKelley authored May 8, 2024
1 parent 3362bd3 commit 8494948
Show file tree
Hide file tree
Showing 7 changed files with 1,941 additions and 711 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
},
"rules": {}
}
]
],
"extends": ["plugin:storybook/recommended"]
}
11 changes: 9 additions & 2 deletions libs/storybook-host/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import { mergeConfig } from 'vite';

const config: StorybookConfig = {
stories: ['../src/lib/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
addons: ['@storybook/addon-essentials'],
stories: ['../src/lib/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
addons: [
'@storybook/addon-essentials',
'@storybook/addon-mdx-gfm',
'@chromatic-com/storybook',
],
framework: {
name: '@storybook/react-vite',
options: {},
Expand All @@ -23,6 +27,9 @@ const config: StorybookConfig = {
mergeConfig(config, {
plugins: [nxViteTsPaths()],
}),
docs: {
autodocs: true,
},
};

export default config;
File renamed without changes.
Loading

0 comments on commit 8494948

Please sign in to comment.