Skip to content

Commit

Permalink
feat: add storybook config
Browse files Browse the repository at this point in the history
  • Loading branch information
hyex committed Nov 25, 2020
1 parent dd69d02 commit 4f9bf8a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions client/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,33 @@
const path = require('path')

module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-actions',
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials"
]
}
typescript: {
check: false,
checkOptions: {},
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: (prop) =>
prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
},
},
webpackFinal: async (config, { configType }) => {
config.resolve.alias = {
...config.resolve.alias,
'@atom': path.resolve(__dirname, '../src/component/atom'),
'@molecule': path.resolve(__dirname, '../src/component/molecule'),
'@organism': path.resolve(__dirname, '../src/component/organism'),
'@constant': path.resolve(__dirname, '../src/constant'),
'@page': path.resolve(__dirname, '../src/page'),
'@store': path.resolve(__dirname, '../src/store'),
'@util': path.resolve(__dirname, '../src/util'),
}
return config
},
}
Binary file added client/storybook-static/favicon.ico
Binary file not shown.

0 comments on commit 4f9bf8a

Please sign in to comment.