-
Notifications
You must be signed in to change notification settings - Fork 813
/
main.js
35 lines (33 loc) · 954 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
const path = require('path')
const isCI = Boolean(process.env.JENKINS_URL && process.env.BUILD_ID)
/** @type {import('@storybook/react-webpack5').StorybookConfig} */
module.exports = {
stories: process.env.STORYBOOK_STORYPATH
? [`../${process.env.STORYBOOK_STORYPATH}`]
: ['../components/**/stories/*.tsx', '../components/**/*.stories.tsx'],
typescript: {
check: true,
reactDocgen: false,
checkOptions: {
async: !isCI,
typescript: {
configFile: path.resolve(__dirname, '..', 'tsconfig-storybook.json')
}
}
},
addons: ['@storybook/addon-knobs', '@storybook/addon-essentials'],
framework: '@storybook/react-webpack5',
staticDirs: [
{ from: '../node_modules/@brave/leo/icons', to: 'icons/' },
{
from: '../components/playlist/browser/resources/stories/assets',
to: 'playlist/'
}
],
features: {
storyStoreV7: false
},
core: {
disableTelemetry: true
}
}