Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit eec753b

Browse files
committed
working storybook
1 parent 128ada7 commit eec753b

File tree

15 files changed

+15113
-6
lines changed

15 files changed

+15113
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
lib

.storybook/addons.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import '@storybook/addon-actions/register'
2+
import 'storybook-addon-a11y/register'

.storybook/config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import 'babel-polyfill'
2+
import { configure } from '@storybook/react'
3+
4+
const req = require.context('../src', true, /components\/.*\/*story\.jsx$/)
5+
const loadStories = () => req.keys().forEach(req)
6+
configure(loadStories, module)

.storybook/preview-head.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet">
2+
<style>
3+
#root,
4+
html,
5+
body {
6+
height: 100%;
7+
padding: 0;
8+
margin: 0;
9+
}
10+
</style>

.storybook/webpack.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
module: {
3+
rules: [
4+
{
5+
test: /\.jsx?$/,
6+
exclude: /node_modules(?!\/@bufferapp\/components)/,
7+
use: {
8+
loader: 'babel-loader',
9+
},
10+
},
11+
],
12+
},
13+
}

0 commit comments

Comments
 (0)