Skip to content

Commit

Permalink
feat: add storybook framework (#4585)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerFeng authored Oct 24, 2023
1 parent 28d82ab commit 17b9554
Show file tree
Hide file tree
Showing 128 changed files with 4,629 additions and 8,509 deletions.
7 changes: 7 additions & 0 deletions .changeset/lovely-insects-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@modern-js/storybook': patch
'@modern-js/storybook-builder': patch
---

feat: add storybook-framework
feat: 支持 storybook-framework
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ local-test-project/*
**/*/typings/auto-generated
.pnpm-store/

.storybook/

**/*/tsconfig.temp.json

.changeset/pre.json
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@
"@types/react": "^18",
"@types/react-dom": "^18"
},
"peerDependencyRules": {
"allowedVersions": {
"@mdx-js/react@^1.6.22>react": "18"
}
},
"allowedDeprecatedVersions": {
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
Expand Down
3 changes: 3 additions & 0 deletions packages/builder/builder-rspack-provider/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ export type {

// Hook Callback Types
ModifyRspackConfigFn,
ModifyRspackConfigUtils,

// Plugin Types
BuilderPluginAPI,

// Rspack
Rspack,
RspackConfig,
Compiler as RspackCompiler,
MultiCompiler as RspackMultiCompiler,
} from './types';
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Builtins } from '@rspack/core';
* Provide some swc configs of rspack
*/
export const builderPluginSwc = (): BuilderPlugin => ({
name: 'builder-plugin-swc',
name: 'builder-plugin-swc-rspack',

setup(api) {
api.modifyBundlerChain(async (chain, { isServer, isServiceWorker }) => {
Expand Down
1 change: 1 addition & 0 deletions packages/cli/core/src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './createLoadedConfig';
export * from './createResolvedConfig';
export * from './createDefaultConfig';
export { loadConfig } from './loadConfig';
2 changes: 2 additions & 0 deletions packages/cli/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { createCli } from './createCli';

export * from './types';
export * from './loadEnv';
export * from '@modern-js/plugin';
export { loadConfig } from './config';
export { mergeConfig, initAppDir } from './utils';
export { manager, createPlugin, registerHook } from './manager';
export {
Expand Down
33 changes: 0 additions & 33 deletions packages/cli/plugin-storybook/.npmignore

This file was deleted.

Loading

0 comments on commit 17b9554

Please sign in to comment.