Skip to content

Commit

Permalink
feat(Storybook): Upgrade to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
thyhjwb6 committed Aug 27, 2020
1 parent 6adc66e commit 120b2bd
Show file tree
Hide file tree
Showing 8 changed files with 783 additions and 847 deletions.
4 changes: 0 additions & 4 deletions packages/react-component-library/.storybook/addons.ts

This file was deleted.

16 changes: 0 additions & 16 deletions packages/react-component-library/.storybook/config.ts

This file was deleted.

10 changes: 10 additions & 0 deletions packages/react-component-library/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
stories: ['../**/*.stories.tsx'],
addons: [
'@storybook/addon-a11y',
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-knobs',
'@storybook/preset-scss',
],
}
3 changes: 3 additions & 0 deletions packages/react-component-library/.storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { addons } from '@storybook/addons'

addons.setConfig({ showRoots: false })
6 changes: 6 additions & 0 deletions packages/react-component-library/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import '@royalnavy/css-framework/index.scss'
import '@royalnavy/fonts'

export const parameters = {
layout: 'fullscreen',
}
24 changes: 0 additions & 24 deletions packages/react-component-library/.storybook/webpack.config.js

This file was deleted.

13 changes: 7 additions & 6 deletions packages/react-component-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@
"@babel/preset-env": "^7.8.3",
"@babel/preset-react": "^7.8.3",
"@babel/preset-typescript": "^7.8.3",
"@storybook/addon-a11y": "^6.0.10",
"@storybook/addon-actions": "^5.3.18",
"@storybook/addon-knobs": "^5.3.18",
"@storybook/addon-links": "^6.0.10",
"@storybook/addons": "^5.3.18",
"@storybook/react": "^5.3.18",
"@storybook/addon-a11y": "^6.0.18",
"@storybook/addon-actions": "^6.0.18",
"@storybook/addon-knobs": "^6.0.18",
"@storybook/addon-links": "^6.0.18",
"@storybook/addons": "^6.0.18",
"@storybook/preset-scss": "^1.0.2",
"@storybook/react": "^6.0.18",
"@svgr/webpack": "^5.1.0",
"@testing-library/jest-dom": "^5.0.2",
"@testing-library/react": "^10.0.2",
Expand Down
1,554 changes: 757 additions & 797 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 120b2bd

Please sign in to comment.