Skip to content

Commit

Permalink
storybook 8 + webpack 5
Browse files Browse the repository at this point in the history
  • Loading branch information
lhz516 committed Dec 30, 2024
1 parent c85ee18 commit ba8fb54
Show file tree
Hide file tree
Showing 109 changed files with 66,554 additions and 7,776 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v2
Expand Down
21 changes: 12 additions & 9 deletions .storybook/main.js → .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
import path from 'path';
import type { StorybookConfig } from '@storybook/react-webpack5';

export default {
stories: [
'../stories/**/*.mdx',
'../stories/**/*.stories.@(ts|tsx)',
],
const config: StorybookConfig = {
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],

addons: [
'@storybook/addon-docs',
'@storybook/addon-actions',
'@storybook/addon-mdx-gfm'
'@storybook/addon-webpack5-compiler-babel',

],

framework: {
name: '@storybook/react-webpack5',
options: {}
},

docs: {
autodocs: true
typescript: {
check: false,
checkOptions: {},
skipCompiler: false,
},

webpackFinal: async (config) => {
config.module.rules.push({
config.module?.rules?.push({
test: /\.scss$/,
use: [
'style-loader',
Expand All @@ -35,3 +36,5 @@ export default {
return config;
},
};

export default config;
1 change: 1 addition & 0 deletions .storybook/preview.js → .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export const parameters = {
page: DocsPage,
},
}
export const tags = ['autodocs'];
2 changes: 0 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ module.exports = (api) => {
'@babel/preset-react',
],
plugins: [
['@babel/plugin-proposal-private-methods'],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-runtime'
],
comments: false,
Expand Down
3 changes: 0 additions & 3 deletions docs/0.22722940.iframe.bundle.js

This file was deleted.

8 changes: 0 additions & 8 deletions docs/0.22722940.iframe.bundle.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion docs/0.22722940.iframe.bundle.js.map

This file was deleted.

1 change: 0 additions & 1 deletion docs/0.38693487deaa3a58181e.manager.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/1.ab59f28d.iframe.bundle.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/109.4802113e.iframe.bundle.js

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

1 change: 0 additions & 1 deletion docs/2.a372bc98.iframe.bundle.js

This file was deleted.

2 changes: 2 additions & 0 deletions docs/338.b95184c9.iframe.bundle.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions docs/338.b95184c9.iframe.bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions docs/341.b80f4ff0.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/364.c34ecd82.iframe.bundle.js

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

2 changes: 0 additions & 2 deletions docs/4.448022d5a1f1789fbfd7.manager.bundle.js

This file was deleted.

8 changes: 0 additions & 8 deletions docs/4.448022d5a1f1789fbfd7.manager.bundle.js.LICENSE.txt

This file was deleted.

2 changes: 0 additions & 2 deletions docs/5.66b7c5d3928352cef6e7.manager.bundle.js

This file was deleted.

12 changes: 0 additions & 12 deletions docs/5.66b7c5d3928352cef6e7.manager.bundle.js.LICENSE.txt

This file was deleted.

95 changes: 95 additions & 0 deletions docs/517.b9a83429.iframe.bundle.js

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions docs/517.b9a83429.iframe.bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* @license React
* react-dom-test-utils.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions docs/517.b9a83429.iframe.bundle.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit ba8fb54

Please sign in to comment.