generated from storybookjs/addon-kit
/
main.js
48 lines (44 loc) 路 999 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
let stories = [
'../stories/docs/**/*.stories.mdx',
// default title prefix
{
titlePrefix: 'Atoms',
directory: '../stories/atoms',
},
// defined title prefix
{
titlePrefix: 'Molecules',
directory: '../stories/molecules',
},
// general glob
'../stories/pages/**/*.stories.@(js|jsx|ts|tsx)',
];
if (process.env.STRESS_TEST) {
stories.push('../stories/stress-test/*.stories.@(js|jsx|ts|tsx)');
}
if (process.env.TEST_FAILURES) {
stories = ['../stories/expected-failures/*.stories.@(js|jsx|ts|tsx)'];
}
const addons = [
process.env.WITHOUT_DOCS
? {
name: '@storybook/addon-essentials',
options: {
docs: false,
},
}
: '@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-coverage',
];
module.exports = {
stories,
addons,
features: {
storyStoreV7: process.env.STORY_STORE_V7 ? true : false,
buildStoriesJson: true,
},
core: {
disableTelemetry: true,
},
};