Skip to content

Commit

Permalink
feat(storybook): switch to addon-docs (#323)
Browse files Browse the repository at this point in the history
* feat(storybook): Upgrade babel,jest, remove deprecated types package

* feat(storybook): switch to addon-docs

fixes #119
  • Loading branch information
ahobson authored Jul 16, 2020
1 parent 1f1fc6a commit ccae95d
Show file tree
Hide file tree
Showing 5 changed files with 2,317 additions and 674 deletions.
1 change: 0 additions & 1 deletion .storybook/addons.js

This file was deleted.

1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const webpackConfig = (config) => {

module.exports = {
stories: ['../src/**/*.stories.@(ts|tsx)'],
addons: ['@storybook/addon-docs'],
webpackFinal: async (config) => {
return webpackConfig(config)
},
Expand Down
4 changes: 0 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { addDecorator } from '@storybook/react'
import { withInfo } from '@storybook/addon-info'
import 'happo-plugin-storybook/register';

import 'uswds/dist/css/uswds.css'
import '../src/styles/index.scss'
import './custom-styles.scss'

addDecorator(withInfo)
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
"uswds": "^2.7.0"
},
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/preset-react": "^7.0.0",
"@storybook/addon-info": "^5.3.19",
"@babel/core": "^7.10.5",
"@babel/preset-react": "^7.10.4",
"@storybook/addon-docs": "^5.3.19",
"@storybook/react": "^5.3.19",
"@storybook/storybook-deployer": "^2.8.6",
"@testing-library/jest-dom": "^5.3.0",
Expand All @@ -80,12 +80,11 @@
"@types/jest": "^26.0.0",
"@types/react": "^16.9.5",
"@types/react-dom": "^16.9.1",
"@types/storybook__react": "^5.2.1",
"@typescript-eslint/eslint-plugin": "^2.3.2",
"@typescript-eslint/parser": "^2.3.2",
"awesome-typescript-loader": "^5.2.1",
"babel-eslint": "^10.0.3",
"babel-jest": "^26.0.1",
"babel-jest": "^26.1.0",
"babel-loader": "^8.0.6",
"commitizen": "^4.1.2",
"css-loader": "^3.2.0",
Expand All @@ -102,7 +101,7 @@
"file-loader": "^6.0.0",
"happo.io": "^5.4.0",
"husky": "^4.2.3",
"jest": "^25.2.3",
"jest": "^26.1.0",
"lint-staged": "^10.0.9",
"mini-css-extract-plugin": "^0.9.0",
"prettier": "^2.0.2",
Expand All @@ -120,7 +119,7 @@
"stylelint-config-sass-guidelines": "^7.0.0",
"stylelint-prettier": "^1.1.1",
"stylelint-scss": "^3.17.1",
"ts-jest": "^25.2.1",
"ts-jest": "^26.1.2",
"typescript": "^3.6.3",
"url-loader": "^4.0.0",
"webpack": "^4.41.0",
Expand Down
Loading

0 comments on commit ccae95d

Please sign in to comment.