mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 06:21:15 +08:00
12 lines
379 B
JavaScript
12 lines
379 B
JavaScript
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
|
|
|
|
import { configure } from '@storybook/angular';
|
|
|
|
// automatically import all files ending in *.stories.ts
|
|
const req = require.context('../stories', true, /.stories.ts$/);
|
|
function loadStories() {
|
|
req.keys().forEach((filename) => req(filename));
|
|
}
|
|
|
|
configure(loadStories, module);
|