65 lines
1.6 KiB
TypeScript
Raw Normal View History

2020-12-04 15:14:48 +01:00
/// <reference types="node" />
import type { StorybookConfig } from '@storybook/react-webpack5/types';
2020-05-20 11:14:34 +03:00
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)',
2021-09-28 22:40:15 +10:00
'./stories/**/*.stories.@(js|ts|tsx|mdx)',
'./../../addons/docs/**/*.stories.tsx',
2021-10-13 12:10:10 +02:00
'./../../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',
2021-10-19 16:50:10 +11:00
'@storybook/addon-a11y',
],
2021-02-09 17:12:51 +01:00
core: {
2022-04-26 22:51:19 +08:00
channelOptions: { allowFunction: false, maxDepth: 10 },
disableTelemetry: true,
2021-02-09 17:12:51 +01:00
},
2020-06-09 13:22:53 +02:00
logLevel: 'debug',
features: {
modernInlineRender: true,
interactionsDebugger: true,
2022-05-27 14:35:10 +02:00
breakingChangesV7: false,
storyStoreV7: false,
},
staticDirs: [
'./statics/public',
{
from: './statics/examples/example1',
to: '/example1',
},
{
from: './statics/examples/example2',
to: '/example2',
},
],
2022-04-26 15:18:44 +08:00
framework: {
name: '@storybook/react-webpack5',
2022-04-26 15:18:44 +08:00
options: {
fastRefresh: true,
strictMode: true,
},
},
};
module.exports = config;