Skip to content

Commit

Permalink
docs(*): add source code addon for storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
itwillwork committed May 29, 2024
1 parent 4dd0d85 commit 0a6a006
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ const config: StorybookConfig = {
'./theme-addon/register.tsx',
'@storybook/addon-a11y',
'@storybook/addon-webpack5-compiler-babel',
{
name: '@storybook/addon-storysource',
options: {
loaderOptions: {
injectStoryParameters: false,
},
},
},
],
typescript: {
check: false, // `false` is default value, but `checked` field is required in types.
Expand Down
98 changes: 95 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
"@playwright/test": "^1.42.1",
"@storybook/addon-a11y": "^8.0.5",
"@storybook/addon-essentials": "^8.0.5",
"@storybook/addon-storysource": "^8.1.4",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/cli": "^8.0.5",
"@storybook/manager-api": "^8.0.5",
Expand Down

0 comments on commit 0a6a006

Please sign in to comment.