Skip to content

Commit

Permalink
chore : Add storybook, Modify TypeScript config.
Browse files Browse the repository at this point in the history
1. Added storybook dependency.
2. Added .npmrc file because of the issue(storybookjs/storybook#18298)
3. Modified TypeScript config file.
  • Loading branch information
taegeon-park23 committed Jan 7, 2023
1 parent aa0026f commit 8d21196
Show file tree
Hide file tree
Showing 24 changed files with 38,339 additions and 11,673 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
16 changes: 16 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/preset-create-react-app"
],
"framework": "@storybook/react",
"core": {
"builder": "@storybook/builder-webpack5"
}
}
9 changes: 9 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
Loading

0 comments on commit 8d21196

Please sign in to comment.