2020-12-04 15:14:48 +01:00
|
|
|
/// <reference types="node" />
|
2022-06-21 00:59:50 +02:00
|
|
|
import type { StorybookConfig } from '@storybook/react-webpack5';
|
2020-05-20 11:14:34 +03:00
|
|
|
|
2021-04-28 18:09:36 +03:00
|
|
|
const config: StorybookConfig = {
|
2019-11-07 17:10:54 +01:00
|
|
|
stories: [
|
2020-01-17 14:52:38 +08:00
|
|
|
// FIXME: Breaks e2e tests './intro.stories.mdx',
|
2022-06-03 13:15:48 +02:00
|
|
|
'../../lib/ui/src/**/*.stories.@(ts|tsx|js|jsx|mdx)',
|
|
|
|
'../../lib/components/src/**/*.stories.@(ts|tsx|js|jsx|mdx)',
|
|
|
|
'./stories/**/*.stories.@(ts|tsx|js|jsx|mdx)',
|
|
|
|
'./../../addons/docs/**/*.stories.@(ts|tsx|js|jsx|mdx)',
|
|
|
|
'./../../addons/interactions/**/*.stories.@(ts|tsx|js|jsx|mdx)',
|
2019-11-07 13:33:21 +01:00
|
|
|
],
|
2019-11-07 17:10:54 +01:00
|
|
|
addons: [
|
2020-06-27 11:21:00 +08:00
|
|
|
{
|
|
|
|
name: '@storybook/addon-docs',
|
2021-10-06 18:36:14 +08:00
|
|
|
options: {
|
|
|
|
transcludeMarkdown: true,
|
|
|
|
// needed if you use addon-docs in conjunction
|
|
|
|
// with addon-storysource
|
|
|
|
sourceLoaderOptions: null,
|
|
|
|
},
|
2020-06-27 11:21:00 +08:00
|
|
|
},
|
2021-10-06 18:36:14 +08:00
|
|
|
'@storybook/addon-essentials',
|
2021-09-09 14:06:51 +02:00
|
|
|
'@storybook/addon-interactions',
|
2019-12-31 10:10:31 +08:00
|
|
|
'@storybook/addon-storysource',
|
|
|
|
'@storybook/addon-links',
|
|
|
|
'@storybook/addon-jest',
|
2021-10-19 16:50:10 +11:00
|
|
|
'@storybook/addon-a11y',
|
2019-10-28 20:25:13 +01:00
|
|
|
],
|
2021-02-09 17:12:51 +01:00
|
|
|
core: {
|
2022-04-26 22:51:19 +08:00
|
|
|
channelOptions: { allowFunction: false, maxDepth: 10 },
|
2022-04-25 16:12:57 +08:00
|
|
|
disableTelemetry: true,
|
2021-02-09 17:12:51 +01:00
|
|
|
},
|
2020-06-09 13:22:53 +02:00
|
|
|
logLevel: 'debug',
|
2021-06-15 10:21:01 +08:00
|
|
|
features: {
|
2021-10-26 21:11:50 +02:00
|
|
|
interactionsDebugger: true,
|
2022-06-10 10:28:06 +02:00
|
|
|
breakingChangesV7: false,
|
2022-05-27 14:35:10 +02:00
|
|
|
storyStoreV7: false,
|
2021-06-15 10:21:01 +08:00
|
|
|
},
|
2021-09-02 19:27:36 +02:00
|
|
|
staticDirs: [
|
|
|
|
'./statics/public',
|
2022-04-06 21:09:16 +08:00
|
|
|
{
|
|
|
|
from: './statics/examples/example1',
|
|
|
|
to: '/example1',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
from: './statics/examples/example2',
|
|
|
|
to: '/example2',
|
|
|
|
},
|
2021-09-02 19:27:36 +02:00
|
|
|
],
|
2022-04-26 15:18:44 +08:00
|
|
|
framework: {
|
2022-05-12 10:10:41 +02:00
|
|
|
name: '@storybook/react-webpack5',
|
2022-04-26 15:18:44 +08:00
|
|
|
options: {
|
|
|
|
fastRefresh: true,
|
|
|
|
strictMode: true,
|
|
|
|
},
|
|
|
|
},
|
2021-04-28 18:09:36 +03:00
|
|
|
};
|
|
|
|
module.exports = config;
|