Created
March 29, 2022 06:00
-
-
Save palanisamym14/fe658506640aee373bd9415cec4b6b69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "webpack5" | |
} | |
} | |
// preview.js | |
export const parameters = { | |
actions: { argTypesRegex: "^on[A-Z].*" }, | |
controls: { | |
matchers: { | |
color: /(background|color)$/i, | |
date: /Date$/, | |
}, | |
}, | |
} | |
"storybook": "start-storybook -p 6006 -s public", | |
"build-storybook": "build-storybook -s public" | |
"devDependencies": { | |
"@storybook/addon-actions": "^6.4.19", | |
"@storybook/addon-essentials": "^6.4.19", | |
"@storybook/addon-interactions": "^6.4.19", | |
"@storybook/addon-links": "^6.4.19", | |
"@storybook/builder-webpack5": "^6.4.19", | |
"@storybook/manager-webpack5": "^6.4.19", | |
"@storybook/node-logger": "^6.4.19", | |
"@storybook/preset-create-react-app": "^4.1.0", | |
"@storybook/react": "^6.4.19", | |
"@storybook/testing-library": "^0.0.9", | |
"webpack": "^5.70.0" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment