Skip to content

Commit

Permalink
chore: bump storybook to v8.3
Browse files Browse the repository at this point in the history
同时更新 storybook 相关依赖
  • Loading branch information
xyy94813 committed Sep 30, 2024
1 parent a1b7d17 commit 2b8f47e
Show file tree
Hide file tree
Showing 4 changed files with 2,282 additions and 7,552 deletions.
25 changes: 17 additions & 8 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
import type { StorybookConfig } from '@storybook/react-vite';
import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
logLevel: 'debug',
stories: ['../docs/**/*.mdx', '../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: ['@storybook/addon-essentials', '@storybook/addon-mdx-gfm'],
logLevel: "debug",
stories: [
"../docs/**/*.mdx",
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],
addons: [
"@storybook/addon-essentials",
"@storybook/addon-mdx-gfm",
"@chromatic-com/storybook",
],
/**
* storybook with typescript
* see https://storybook.js.org/docs/configurations/typescript-config/
*/
framework: {
name: '@storybook/react-vite',
name: "@storybook/react-vite",
options: {},
},
docs: {
autodocs: true,
docs: {},
typescript: {
reactDocgen: "react-docgen-typescript",
},
};

export default config;
export default config;
1 change: 1 addition & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ export const parameters = {
};

export const globalTypes = {};
export const tags = ["autodocs"];
Loading

0 comments on commit 2b8f47e

Please sign in to comment.