2016-12-08 14:08:04 +02:00
|
|
|
const { configure } = require('@kadira/storybook');
|
|
|
|
|
2017-01-11 14:28:45 +02:00
|
|
|
const req = require.context('../src/components', true, /story.js$/)
|
|
|
|
|
2016-12-08 14:08:04 +02:00
|
|
|
function loadStories() {
|
2017-01-11 14:28:45 +02:00
|
|
|
req.keys().forEach((filename) => req(filename));
|
2016-12-08 14:08:04 +02:00
|
|
|
require('../stories');
|
|
|
|
}
|
|
|
|
|
2017-01-11 14:28:45 +02:00
|
|
|
configure(loadStories, module);
|