-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liyouzhi
committed
Jul 11, 2023
1 parent
31bc5af
commit 279ff78
Showing
323 changed files
with
34,392 additions
and
15,170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,29 @@ | ||
import type { StorybookConfig } from "@storybook/angular"; | ||
import type { StorybookConfig } from '@storybook/angular'; | ||
import remarkGfm from 'remark-gfm'; | ||
|
||
const config: StorybookConfig = { | ||
core: {}, | ||
stories: [ | ||
'../stories/**/index.@(js|ts)', | ||
'../stories/**/*.stories.@(js|ts|mdx)', | ||
], | ||
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-docs', | ||
'@storybook/addon-knobs', | ||
'@storybook/addon-actions', | ||
'@storybook/addon-storysource', | ||
'storybook-dark-mode', | ||
], | ||
webpackFinal(config) { | ||
config.module.rules.push({ | ||
test: /\.stories\.tsx?$/, | ||
use: [ | ||
{ | ||
loader: require.resolve('@storybook/source-loader'), | ||
options: { | ||
parser: 'typescript', | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
{ | ||
name: '@storybook/addon-docs', | ||
options: { | ||
mdxPluginOptions: { | ||
mdxCompileOptions: { | ||
remarkPlugins: [remarkGfm], | ||
}, | ||
}, | ||
], | ||
enforce: 'pre', | ||
}); | ||
return config; | ||
}, | ||
}, | ||
}, | ||
], | ||
framework: { | ||
name: '@storybook/angular', | ||
options: {}, | ||
}, | ||
docs: { | ||
autodocs: true, | ||
}, | ||
features: { | ||
legacyMdx1: true, // Enables MDX v1 support | ||
storyStoreV7: false, // Opt out of on-demand story loading | ||
}, | ||
}; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
{ | ||
"extends": "../tsconfig", | ||
"include": ["./*.ts", "../stories"] | ||
"compilerOptions": { | ||
"types": ["node"], | ||
"allowSyntheticDefaultImports": true, | ||
"resolveJsonModule": true | ||
}, | ||
"exclude": ["../stories/test.ts", "../stories/**/*.spec.ts"], | ||
"include": ["../stories/**/*", "./preview.ts"], | ||
"files": ["./typings.d.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module '*.md' { | ||
const content: string; | ||
export default content; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.