Skip to content

Commit

Permalink
Added box stories
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps committed Oct 16, 2019
1 parent 1aa2d96 commit 5ebeee0
Show file tree
Hide file tree
Showing 22 changed files with 2,764 additions and 726 deletions.
3 changes: 3 additions & 0 deletions .storybook/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { configure } from '@storybook/react'

configure(require.context('../src', true, /\.stories\.tsx?$/), module)
16 changes: 16 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = ({ config }) => {
config.module.rules.push({
test: /\.(ts|tsx)$/,
use: [
{
loader: require.resolve('awesome-typescript-loader'),
},
// Optional
{
loader: require.resolve('react-docgen-typescript-loader'),
},
],
})
config.resolve.extensions.push('.ts', '.tsx')
return config
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@
"dev": "docz dev",
"build": "rollup -c ",
"docz:build": "docz build",
"start": "rollup -c -w"
"start": "rollup -c -w",
"storybook": "start-storybook -p 6006"
},
"devDependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.19",
"@fortawesome/free-brands-svg-icons": "^5.9.0",
"@fortawesome/free-regular-svg-icons": "^5.9.0",
"@fortawesome/free-solid-svg-icons": "^5.9.0",
"@fortawesome/react-fontawesome": "^0.1.4",
"@storybook/react": "^5.2.4",
"@svgr/rollup": "^4.3.0",
"@testing-library/react": "^8.0.1",
"@types/emojione": "^2.2.5",
Expand Down Expand Up @@ -66,6 +68,8 @@
"react-dom": "16.8.6"
},
"dependencies": {
"awesome-typescript-loader": "^5.2.1",
"react-docgen-typescript-loader": "^3.3.0",
"styled-components": "^4.3.1"
},
"jest": {
Expand Down
22 changes: 0 additions & 22 deletions src/__tests__/DarksideTheme.test.tsx

This file was deleted.

60 changes: 0 additions & 60 deletions src/__tests__/Heading.test.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions src/__tests__/Label.test.tsx

This file was deleted.

70 changes: 0 additions & 70 deletions src/__tests__/Loader.test.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions src/__tests__/Paragraph.test..tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/__tests__/__snapshots__/DarksideTheme.test.tsx.snap

This file was deleted.

108 changes: 0 additions & 108 deletions src/__tests__/__snapshots__/Heading.test.tsx.snap

This file was deleted.

15 changes: 0 additions & 15 deletions src/__tests__/__snapshots__/Label.test.tsx.snap

This file was deleted.

Loading

0 comments on commit 5ebeee0

Please sign in to comment.