Skip to content

Commit

Permalink
Upgrade to Storybook 6
Browse files Browse the repository at this point in the history
  • Loading branch information
bensmithett committed Aug 14, 2020
1 parent 02500f8 commit 8c55e48
Show file tree
Hide file tree
Showing 5 changed files with 1,112 additions and 879 deletions.
22 changes: 0 additions & 22 deletions .storybook/config.js

This file was deleted.

3 changes: 3 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
stories: ['../app/components/**/*.stories.@(js|mdx)']
}
11 changes: 11 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'
import { createRenderer } from 'fela'
import { RendererProvider } from 'react-fela'
import cssReset from '../app/components/cssReset'

// Setup Fela client runtime
const renderer = createRenderer({ devMode: true })
cssReset(renderer)
export const decorators = [
(storyFn) => <RendererProvider renderer={renderer}>{storyFn()}</RendererProvider>
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@babel/preset-react": "^7.8.3",
"@mdx-js/loader": "^1.5.5",
"@mdx-js/react": "^1.6.16",
"@storybook/react": "^5.3.13",
"@storybook/react": "^6.0.7",
"babel-loader": "^8.0.6",
"chalk": "^4.1.0",
"concurrently": "^5.1.0",
Expand Down
Loading

0 comments on commit 8c55e48

Please sign in to comment.