Skip to content

Commit 2c20fda

Browse files
committed
Feat: Initialize Storybook
1 parent 37ac757 commit 2c20fda

31 files changed

+3623
-174
lines changed

web/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
/src/.umi-test
88
/dist
99
.swc
10+
11+
*storybook.log
12+
storybook-static

web/.storybook/main.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { StorybookConfig } from '@storybook/react-webpack5';
2+
3+
const config: StorybookConfig = {
4+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5+
addons: [
6+
'@storybook/addon-webpack5-compiler-swc',
7+
'@storybook/addon-docs',
8+
'@storybook/addon-onboarding',
9+
],
10+
framework: {
11+
name: '@storybook/react-webpack5',
12+
options: {},
13+
},
14+
};
15+
export default config;

web/.storybook/preview.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { Preview } from '@storybook/react-webpack5';
2+
3+
const preview: Preview = {
4+
parameters: {
5+
controls: {
6+
matchers: {
7+
color: /(background|color)$/i,
8+
date: /Date$/i,
9+
},
10+
},
11+
},
12+
};
13+
14+
export default preview;

0 commit comments

Comments
 (0)