aboutsummaryrefslogtreecommitdiffstats
path: root/.storybook/config.js
blob: cdfdaee11932691de2d11e43f16f4673ec8ce1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { configure } from '@storybook/angular';
import { setOptions } from '@storybook/addon-options';

setOptions({
  hierarchyRootSeparator: /\|/,
});

function loadStories() {
  // 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);