Skip to content

Commit ba8fb54

Browse files
committed
storybook 8 + webpack 5
1 parent c85ee18 commit ba8fb54

File tree

109 files changed

+66554
-7776
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+66554
-7776
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [18.x]
19+
node-version: [20.x]
2020

2121
steps:
2222
- uses: actions/checkout@v2
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
import path from 'path';
2+
import type { StorybookConfig } from '@storybook/react-webpack5';
23

3-
export default {
4-
stories: [
5-
'../stories/**/*.mdx',
6-
'../stories/**/*.stories.@(ts|tsx)',
7-
],
4+
const config: StorybookConfig = {
5+
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
86

97
addons: [
108
'@storybook/addon-docs',
119
'@storybook/addon-actions',
12-
'@storybook/addon-mdx-gfm'
10+
'@storybook/addon-webpack5-compiler-babel',
11+
1312
],
1413

1514
framework: {
1615
name: '@storybook/react-webpack5',
1716
options: {}
1817
},
1918

20-
docs: {
21-
autodocs: true
19+
typescript: {
20+
check: false,
21+
checkOptions: {},
22+
skipCompiler: false,
2223
},
2324

2425
webpackFinal: async (config) => {
25-
config.module.rules.push({
26+
config.module?.rules?.push({
2627
test: /\.scss$/,
2728
use: [
2829
'style-loader',
@@ -35,3 +36,5 @@ export default {
3536
return config;
3637
},
3738
};
39+
40+
export default config;

.storybook/preview.js renamed to .storybook/preview.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ export const parameters = {
77
page: DocsPage,
88
},
99
}
10+
export const tags = ['autodocs'];

babel.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ module.exports = (api) => {
2424
'@babel/preset-react',
2525
],
2626
plugins: [
27-
['@babel/plugin-proposal-private-methods'],
28-
'@babel/plugin-proposal-class-properties',
2927
'@babel/plugin-transform-runtime'
3028
],
3129
comments: false,

docs/0.22722940.iframe.bundle.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/0.22722940.iframe.bundle.js.LICENSE.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/0.22722940.iframe.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/0.38693487deaa3a58181e.manager.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/1.ab59f28d.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/109.4802113e.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/2.a372bc98.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/338.b95184c9.iframe.bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @license React
3+
* scheduler.production.js
4+
*
5+
* Copyright (c) Meta Platforms, Inc. and affiliates.
6+
*
7+
* This source code is licensed under the MIT license found in the
8+
* LICENSE file in the root directory of this source tree.
9+
*/

docs/341.b80f4ff0.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/364.c34ecd82.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/4.448022d5a1f1789fbfd7.manager.bundle.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/4.448022d5a1f1789fbfd7.manager.bundle.js.LICENSE.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/5.66b7c5d3928352cef6e7.manager.bundle.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/5.66b7c5d3928352cef6e7.manager.bundle.js.LICENSE.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/517.b9a83429.iframe.bundle.js

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* @license React
3+
* react-dom-test-utils.production.js
4+
*
5+
* Copyright (c) Meta Platforms, Inc. and affiliates.
6+
*
7+
* This source code is licensed under the MIT license found in the
8+
* LICENSE file in the root directory of this source tree.
9+
*/
10+
11+
/**
12+
* @license React
13+
* react-dom.production.js
14+
*
15+
* Copyright (c) Meta Platforms, Inc. and affiliates.
16+
*
17+
* This source code is licensed under the MIT license found in the
18+
* LICENSE file in the root directory of this source tree.
19+
*/
20+
21+
/**
22+
* @license React
23+
* react-jsx-runtime.production.js
24+
*
25+
* Copyright (c) Meta Platforms, Inc. and affiliates.
26+
*
27+
* This source code is licensed under the MIT license found in the
28+
* LICENSE file in the root directory of this source tree.
29+
*/
30+
31+
/**
32+
* @license React
33+
* react.production.js
34+
*
35+
* Copyright (c) Meta Platforms, Inc. and affiliates.
36+
*
37+
* This source code is licensed under the MIT license found in the
38+
* LICENSE file in the root directory of this source tree.
39+
*/

docs/517.b9a83429.iframe.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)