Skip to content

Commit 5aa3fd2

Browse files
authored
chore: migrate storybook to v6 (#741)
* chore: migrate storybook to v6 * chore: bump the storybook version to v6.3
1 parent 957a0f0 commit 5aa3fd2

File tree

5 files changed

+3162
-1666
lines changed

5 files changed

+3162
-1666
lines changed

.storybook/config.js

-10
This file was deleted.

.storybook/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const { plugins, rules } = require('webpack-atoms');
22

33
module.exports = {
4+
stories: ['../stories/index.js'],
45
webpackFinal: (config) => {
56
config.module = {
67
rules: [rules.js(), rules.astroturf(), rules.css({ extract: false })],

.storybook/preview.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
3+
export const decorators = [
4+
(Story) => (
5+
<React.StrictMode>
6+
<Story />
7+
</React.StrictMode>
8+
),
9+
];

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
"@semantic-release/git": "^9.0.0",
7777
"@semantic-release/github": "^7.0.5",
7878
"@semantic-release/npm": "^7.0.5",
79-
"@storybook/addon-actions": "^5.3.18",
80-
"@storybook/react": "^5.3.18",
79+
"@storybook/addon-actions": "^6.3.4",
80+
"@storybook/react": "^6.3.4",
8181
"@typescript-eslint/eslint-plugin": "^4.26.1",
8282
"astroturf": "^0.10.4",
8383
"babel-eslint": "^10.1.0",

0 commit comments

Comments
 (0)