mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
19 lines
441 B
JavaScript
19 lines
441 B
JavaScript
import { configure, addDecorator } from '@storybook/ember';
|
|
import { withOptions } from '@storybook/addon-options';
|
|
|
|
addDecorator(
|
|
withOptions({
|
|
hierarchySeparator: /\/|\./,
|
|
hierarchyRootSeparator: /\|/,
|
|
})
|
|
);
|
|
|
|
function loadStories() {
|
|
require('../stories/index.stories');
|
|
|
|
const req = require.context('../stories', true, /\.stories\.js$/);
|
|
req.keys().forEach(filename => req(filename));
|
|
}
|
|
|
|
configure(loadStories, module);
|