1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00
copilot/ui/.storybook/config.js

17 lines
389 B
JavaScript
Raw Normal View History

const { configure } = require('@kadira/storybook');
const req = require.context('../src/components', true, /story.js$/)
function loadStories() {
2017-01-11 16:08:47 +02:00
let stories = req.keys();
stories = stories.sort();
stories.forEach(story => req(story));
2017-01-11 16:08:47 +02:00
// Fallback to stories/index.js file for anything that
// hasn't been moved
require('../stories');
}
configure(loadStories, module);