-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Storybook v8.x #1904
base: main
Are you sure you want to change the base?
Upgrade Storybook v8.x #1904
Changes from all commits
1fb31fc
4aadd9d
7f04d19
3cf1317
39d40ae
015acb1
946f82b
9587d10
2527177
c2a4a0f
35a5605
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@khanacademy/perseus-dev-ui": patch | ||
"@khanacademy/math-input": patch | ||
"@khanacademy/perseus": patch | ||
"@khanacademy/perseus-editor": patch | ||
--- | ||
|
||
Upgrade Storybook to v8.x |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@khanacademy/perseus-dev-ui": patch | ||
--- | ||
|
||
Upgrade Storybook to v8.x |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,10 @@ const preview: Preview = { | |
})), | ||
}, | ||
}, | ||
tags: [ | ||
//👇 Enables auto-generated documentation for all stories | ||
"autodocs", | ||
], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. New config location (https://storybook.js.org/docs/writing-docs/autodocs) |
||
}; | ||
|
||
export default preview; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
"@phosphor-icons/core": "^2.0.2" | ||
}, | ||
"devDependencies": { | ||
"vite": "^5.1.0" | ||
"vite": "^5.1.0", | ||
"@vitejs/plugin-react": "^4.3.3" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We now need to specify this dep explicitly. |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
"engines": { | ||
"node": ">=20" | ||
}, | ||
"dependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.23.2", | ||
"@babel/eslint-parser": "^7.22.15", | ||
"@babel/eslint-plugin": "^7.22.10", | ||
|
@@ -40,14 +40,14 @@ | |
"@rollup/plugin-node-resolve": "^13.2.1", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@sheerun/mutationobserver-shim": "^0.3.3", | ||
"@storybook/addon-a11y": "^7.6.17", | ||
"@storybook/addon-actions": "^7.6.17", | ||
"@storybook/addon-controls": "^7.6.17", | ||
"@storybook/addon-essentials": "^7.6.17", | ||
"@storybook/addon-links": "^7.6.17", | ||
"@storybook/addon-viewport": "^7.6.17", | ||
"@storybook/react": "^7.6.17", | ||
"@storybook/react-vite": "^7.6.17", | ||
"@storybook/addon-a11y": "^8.4.5", | ||
"@storybook/addon-actions": "^8.4.5", | ||
"@storybook/addon-controls": "^8.4.5", | ||
"@storybook/addon-essentials": "^8.4.5", | ||
"@storybook/addon-links": "^8.4.5", | ||
"@storybook/addon-viewport": "^8.4.5", | ||
"@storybook/react": "^8.4.5", | ||
"@storybook/react-vite": "^8.4.5", | ||
"@swc-node/register": "^1.6.6", | ||
"@swc/core": "^1.3.68", | ||
"@testing-library/dom": "^10.3.1", | ||
|
@@ -117,13 +117,12 @@ | |
"rollup-plugin-preserve-shebangs": "^0.2.0", | ||
"rollup-plugin-styles": "^4.0.0", | ||
"sloc": "^0.2.1", | ||
"storybook": "^7.6.17", | ||
"storybook": "^8.4.5", | ||
"style-loader": "^3.3.3", | ||
"tiny-invariant": "^1.3.1", | ||
"typescript": "^5.4.2", | ||
"typescript-coverage-report": "^0.7.0", | ||
"vite-plugin-istanbul": "^5.0.0", | ||
"vite-plugin-turbosnap": "^1.0.3", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. turbosnap is now built into the "@storybook/react-vite" bundle and can be enabled with the standard --stats-json argument |
||
"winston": "^3.7.2" | ||
}, | ||
"scripts": { | ||
|
@@ -143,7 +142,7 @@ | |
"test": "jest", | ||
"storybook": "storybook dev -p 6006", | ||
"start": "storybook dev -p 6006", | ||
"build-storybook": "storybook build", | ||
"build-storybook": "storybook build --stats-json", | ||
"cypress": "cypress open --component", | ||
"cypress:ci": "cross-env cypress run --component", | ||
"format": "prettier --write .", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Storybook now defaults to react-docgen so no need to specify this here: https://storybook.js.org/docs/api/main-config/main-config-typescript#reactdocgen