diff options
Diffstat (limited to '.storybook/config.js')
-rw-r--r-- | .storybook/config.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/.storybook/config.js b/.storybook/config.js index 5896dcc..cdfdaee 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -1,8 +1,17 @@ -import { configure } from '@storybook/react'; -import './storybook.scss'; +import { configure } from '@storybook/angular'; +import { setOptions } from '@storybook/addon-options'; + +setOptions({ + hierarchyRootSeparator: /\|/, +}); function loadStories() { - require('../stories/react'); + // put welcome screen at the top of the list so it's the first one displayed + require('../stories/angular'); + + // automatically import all story ts files that end with *.stories.ts + const req = require.context('../stories/angular', true, /\.stories\.ts$/); + req.keys().forEach(filename => req(filename)); } configure(loadStories, module); |