Skip to content

Commit

Permalink
Storybook config 2 (#7438)
Browse files Browse the repository at this point in the history
* feat(storybook-config): move remaining packages to storybook config

* feat(storybook-config): move remaining packages to storybook config

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
Alessandra Davila and kodiakhq[bot] authored Dec 14, 2020
1 parent 2852b49 commit 8e8867c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
2 changes: 2 additions & 0 deletions config/storybook-preset-carbon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module.exports = {
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-docs',
'@storybook/addon-notes/register',
'storybook-readme/register',

// Phase 1: port over add-ons from packages/react/.storybook
// Phase 2: port over webpack config for Sass
Expand Down
6 changes: 5 additions & 1 deletion config/storybook-preset-carbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"@storybook/addon-docs": "^5.3.19",
"@storybook/addon-knobs": "^5.3.19",
"@storybook/addon-links": "^5.3.19",
"@storybook/addon-storysource": "^5.3.19"
"@storybook/addon-notes": "^5.3.19",
"@storybook/addon-storysource": "^5.3.19",
"@storybook/addons": "^5.3.19",
"@storybook/react": "^5.3.19",
"storybook-readme": "^5.0.8"
}
}
10 changes: 0 additions & 10 deletions packages/react/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ module.exports = {
'@storybook/addon-storysource',

'storybook-preset-carbon',

// Next batch
// Copy over to storybook-preset-carbon/index.js (addons)
// Move dependencies from react/package.json to storybook-preset-carbon/package.json

// ...
'@storybook/addon-notes/register',
'storybook-readme/register',

// ...
require.resolve('./addon-carbon-theme/register'),
],
stories: ['../src/**/*-story.js', '../src/**/*.stories.mdx'],
Expand Down
2 changes: 0 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"@babel/preset-react": "^7.10.0",
"@carbon/test-utils": "^10.13.0",
"@percy/storybook": "^3.3.1",
"@storybook/addon-notes": "^5.3.19",
"@storybook/addon-storysource": "^5.3.19",
"@storybook/addons": "^5.3.19",
"@storybook/react": "^5.3.19",
Expand Down Expand Up @@ -118,7 +117,6 @@
"rtlcss": "^2.4.0",
"sass-loader": "^8.0.2",
"storybook-preset-carbon": "^0.0.0",
"storybook-readme": "^5.0.8",
"string-replace-loader": "^2.1.0",
"terser-webpack-plugin": "^2.3.2",
"webpack": "^4.41.5",
Expand Down
6 changes: 4 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10203,7 +10203,6 @@ __metadata:
"@carbon/icons-react": ^10.22.0
"@carbon/test-utils": ^10.13.0
"@percy/storybook": ^3.3.1
"@storybook/addon-notes": ^5.3.19
"@storybook/addon-storysource": ^5.3.19
"@storybook/addons": ^5.3.19
"@storybook/react": ^5.3.19
Expand Down Expand Up @@ -10259,7 +10258,6 @@ __metadata:
rtlcss: ^2.4.0
sass-loader: ^8.0.2
storybook-preset-carbon: ^0.0.0
storybook-readme: ^5.0.8
string-replace-loader: ^2.1.0
terser-webpack-plugin: ^2.3.2
use-resize-observer: ^6.0.0
Expand Down Expand Up @@ -31800,7 +31798,11 @@ [email protected]:
"@storybook/addon-docs": ^5.3.19
"@storybook/addon-knobs": ^5.3.19
"@storybook/addon-links": ^5.3.19
"@storybook/addon-notes": ^5.3.19
"@storybook/addon-storysource": ^5.3.19
"@storybook/addons": ^5.3.19
"@storybook/react": ^5.3.19
storybook-readme: ^5.0.8
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 8e8867c

Please sign in to comment.