mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-22 05:02:18 +08:00
21 lines
582 B
TypeScript
21 lines
582 B
TypeScript
import { configure } from '@storybook/angular';
|
|
import { setOptions } from '@storybook/addon-options';
|
|
import addCssWarning from '../src/cssWarning';
|
|
|
|
addCssWarning();
|
|
|
|
setOptions({
|
|
hierarchyRootSeparator: /\|/,
|
|
});
|
|
|
|
function loadStories() {
|
|
// put welcome screen at the top of the list so it's the first one displayed
|
|
require('../src/stories');
|
|
|
|
// automatically import all story ts files that end with *.stories.ts
|
|
const req = require.context('../src/stories', true, /\.stories\.ts$/);
|
|
req.keys().forEach(filename => req(filename));
|
|
}
|
|
|
|
configure(loadStories, module);
|