mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 23:21:15 +08:00
14 lines
445 B
TypeScript
14 lines
445 B
TypeScript
import { configure, addDecorator } from '@storybook/aurelia';
|
|
import { withA11y } from '@storybook/addon-a11y';
|
|
import { addComponents } from '@storybook/aurelia/dist/client/preview/decorators';
|
|
import { CoolButton } from '../src/cool-button/cool-button';
|
|
|
|
addDecorator(withA11y);
|
|
|
|
const req = require.context('../src/stories', true, /\.stories\.(ts|js)$/);
|
|
function loadStories() {
|
|
req.keys().forEach(req);
|
|
}
|
|
|
|
configure(loadStories, module);
|