2017-06-04 17:26:07 +03:00
|
|
|
import { configure } from '@storybook/react';
|
2016-12-14 19:21:31 +02:00
|
|
|
import { addLocaleData } from 'react-intl';
|
|
|
|
import en from 'react-intl/locale-data/en';
|
2017-05-13 16:55:56 +03:00
|
|
|
import '../app/javascript/styles/application.scss';
|
|
|
|
import './storybook.scss';
|
2016-10-11 04:21:06 +03:00
|
|
|
|
2016-12-14 19:21:31 +02:00
|
|
|
addLocaleData(en);
|
2016-10-11 05:07:32 +03:00
|
|
|
|
2017-05-13 16:55:56 +03:00
|
|
|
let req = require.context('./stories/', true, /.story.js$/);
|
2017-04-18 17:04:35 +03:00
|
|
|
|
2016-10-11 04:21:06 +03:00
|
|
|
function loadStories () {
|
2017-05-20 18:31:47 +03:00
|
|
|
req.keys().forEach((filename) => req(filename));
|
2016-10-11 04:21:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
configure(loadStories, module);
|