mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-25 05:03:10 +08:00
# Conflicts: # addons/a11y/package.json # addons/actions/package.json # addons/backgrounds/package.json # addons/controls/package.json # addons/docs/package.json # addons/essentials/package.json # addons/interactions/package.json # addons/jest/package.json # addons/links/package.json # addons/measure/package.json # addons/outline/package.json # addons/storyshots/storyshots-core/package.json # addons/storysource/package.json # addons/toolbars/package.json # addons/viewport/package.json # docs/faq.md # examples/angular-cli/.storybook/main.js # examples/angular-cli/package.json # examples/cra-kitchen-sink/.storybook/main.js # examples/cra-kitchen-sink/package.json # examples/cra-react15/.storybook/main.js # examples/cra-react15/package.json # examples/cra-ts-essentials/.storybook/main.ts # examples/cra-ts-essentials/package.json # examples/cra-ts-kitchen-sink/.storybook/main.ts # examples/cra-ts-kitchen-sink/package.json # examples/ember-cli/.storybook/main.js # examples/ember-cli/package.json # examples/external-docs/package.json # examples/html-kitchen-sink/.storybook/main.js # examples/html-kitchen-sink/package.json # examples/official-storybook/main.ts # examples/official-storybook/package.json # examples/preact-kitchen-sink/.storybook/main.js # examples/preact-kitchen-sink/package.json # examples/react-ts-webpack4/package.json # examples/react-ts/package.json # examples/server-kitchen-sink/package.json # examples/standalone-preview/package.json # examples/svelte-kitchen-sink/.storybook/main.js # examples/svelte-kitchen-sink/package.json # examples/vue-3-cli/.storybook/main.js # examples/vue-3-cli/package.json # examples/vue-cli/.storybook/main.js # examples/vue-cli/package.json # examples/vue-kitchen-sink/.storybook/main.js # examples/vue-kitchen-sink/package.json # examples/web-components-kitchen-sink/.storybook/main.js # frameworks/angular/package.json # frameworks/ember/package.json # frameworks/preact-webpack5/package.json # frameworks/vue-webpack5/package.json # frameworks/vue3-webpack5/package.json # lib/addons/package.json # lib/api/package.json # lib/builder-webpack4/package.json # lib/builder-webpack5/package.json # lib/channel-postmessage/package.json # lib/channel-websocket/package.json # lib/channels/package.json # lib/cli/package.json # lib/cli/src/automigrate/fixes/angular12.test.ts # lib/cli/src/automigrate/index.ts # lib/cli/src/versions.ts # lib/client-api/package.json # lib/client-logger/package.json # lib/codemod/package.json # lib/components/package.json # lib/core-client/package.json # lib/core-common/package.json # lib/core-events/package.json # lib/core-server/package.json # lib/core-server/src/__snapshots__/vue-3-cli_preview-dev-posix # lib/core-server/src/__snapshots__/vue-3-cli_preview-prod-posix # lib/core-vite/package.json # lib/csf-tools/package.json # lib/docs-tools/package.json # lib/instrumenter/package.json # lib/manager-webpack4/package.json # lib/manager-webpack5/package.json # lib/node-logger/package.json # lib/postinstall/package.json # lib/preview-web/package.json # lib/router/package.json # lib/source-loader/package.json # lib/store/package.json # lib/telemetry/package.json # lib/theming/package.json # lib/ui/package.json # presets/server-webpack/package.json # renderers/html/package.json # renderers/react/package.json # renderers/svelte/package.json # renderers/web-components/package.json # scripts/build-package.js # scripts/bundle-package.ts # yarn.lock
65 lines
1.6 KiB
TypeScript
65 lines
1.6 KiB
TypeScript
/// <reference types="node" />
|
|
import type { StorybookConfig } from '@storybook/react-webpack5/types';
|
|
|
|
const config: StorybookConfig = {
|
|
stories: [
|
|
{
|
|
directory: './stories/title',
|
|
titlePrefix: 'Custom Prefix',
|
|
},
|
|
// FIXME: Breaks e2e tests './intro.stories.mdx',
|
|
'../../lib/ui/src/**/*.stories.@(js|tsx|mdx)',
|
|
'../../lib/components/src/**/*.stories.@(js|tsx|mdx)',
|
|
'./stories/**/*.stories.@(js|ts|tsx|mdx)',
|
|
'./../../addons/docs/**/*.stories.tsx',
|
|
'./../../addons/interactions/**/*.stories.(tsx|mdx)',
|
|
],
|
|
addons: [
|
|
{
|
|
name: '@storybook/addon-docs',
|
|
options: {
|
|
transcludeMarkdown: true,
|
|
// needed if you use addon-docs in conjunction
|
|
// with addon-storysource
|
|
sourceLoaderOptions: null,
|
|
},
|
|
},
|
|
'@storybook/addon-essentials',
|
|
'@storybook/addon-interactions',
|
|
'@storybook/addon-storysource',
|
|
'@storybook/addon-links',
|
|
'@storybook/addon-jest',
|
|
'@storybook/addon-a11y',
|
|
],
|
|
core: {
|
|
builder: '@storybook/builder-webpack5',
|
|
channelOptions: { allowFunction: false, maxDepth: 10 },
|
|
disableTelemetry: true,
|
|
},
|
|
logLevel: 'debug',
|
|
features: {
|
|
modernInlineRender: true,
|
|
interactionsDebugger: true,
|
|
breakingChangesV7: true,
|
|
},
|
|
staticDirs: [
|
|
'./statics/public',
|
|
{
|
|
from: './statics/examples/example1',
|
|
to: '/example1',
|
|
},
|
|
{
|
|
from: './statics/examples/example2',
|
|
to: '/example2',
|
|
},
|
|
],
|
|
framework: {
|
|
name: '@storybook/react-webpack5',
|
|
options: {
|
|
fastRefresh: true,
|
|
strictMode: true,
|
|
},
|
|
},
|
|
};
|
|
module.exports = config;
|