mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
20 lines
474 B
JavaScript
20 lines
474 B
JavaScript
import { configure, addParameters, addDecorator } from '@storybook/ember';
|
|
import { withA11y } from '@storybook/addon-a11y';
|
|
|
|
addDecorator(withA11y);
|
|
addParameters({
|
|
options: {
|
|
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);
|