Skip to content

Commit

Permalink
Merge pull request #178 from wilcoschoneveld/storybooks
Browse files Browse the repository at this point in the history
Storybook and unit tests
  • Loading branch information
drcmda committed Aug 28, 2018
2 parents 039de1c + 472f56b commit 1dcc5ec
Show file tree
Hide file tree
Showing 23 changed files with 3,029 additions and 10,098 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
.DS_Store
.docz/
.vscode
.docz/
package-lock.json
8 changes: 4 additions & 4 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"dist/addons.umd.js": {
"bundled": 16003,
"bundled": 16027,
"minified": 5898,
"gzipped": 2150
},
"dist/web.umd.js": {
"bundled": 88777,
"minified": 35800,
"gzipped": 12214
"bundled": 88972,
"minified": 35874,
"gzipped": 12231
}
}
1 change: 1 addition & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@storybook/addon-knobs/register'
11 changes: 11 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { configure } from '@storybook/react'
import '../stories/index.css'

// Load all files in the stories folder with a .js extension
const req = require.context('../stories/', true, /.js$/)

function loadStories() {
req.keys().forEach(filename => req(filename))
}

configure(loadStories, module)

0 comments on commit 1dcc5ec

Please sign in to comment.