Skip to content

Commit 2b5b7f5

Browse files
committed
initial commit
1 parent 879607f commit 2b5b7f5

File tree

22 files changed

+16056
-0
lines changed

22 files changed

+16056
-0
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/.babelrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"targets": {
7+
"node": "8"
8+
},
9+
"browsers": "> 3%",
10+
"modules": false,
11+
}
12+
],
13+
"react"
14+
],
15+
"plugins": [
16+
"transform-class-properties",
17+
"transform-export-extensions",
18+
"transform-object-rest-spread"
19+
]
20+
}

.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)