config.js 501 B

1234567891011121314151617
  1. import { configure, setAddon } from '@kadira/storybook';
  2. import React from 'react';
  3. import { storiesOf, action } from '@kadira/storybook';
  4. import { addLocaleData } from 'react-intl';
  5. import en from 'react-intl/locale-data/en';
  6. import '../app/javascript/styles/application.scss';
  7. import './storybook.scss';
  8. addLocaleData(en);
  9. let req = require.context('./stories/', true, /.story.js$/);
  10. function loadStories () {
  11. req.keys().forEach((filename) => req(filename));
  12. }
  13. configure(loadStories, module);