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