-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[other] Upgrade storybook to v7 (#98)
* upgrade storybook to v7 * bump min node version to 16 * fix storybook bugs * replace storybook/react with storybook/nextjs
- Loading branch information
1 parent
74ac599
commit 3bbcee6
Showing
7 changed files
with
2,966 additions
and
4,392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"sourceType": "unambiguous", | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"chrome": 100 | ||
} | ||
} | ||
], | ||
"@babel/preset-typescript", | ||
"@babel/preset-react" | ||
], | ||
"plugins": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ["custom"], | ||
extends: ["custom"] | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import {StorybookConfig} from "@storybook/nextjs"; | ||
|
||
const config: StorybookConfig = { | ||
stories: [ | ||
"../components/**/*.stories.mdx", | ||
"../components/**/*.stories.@(js|jsx|ts|tsx)", | ||
"../stories/**/*.stories.mdx", | ||
"../stories/**/*.stories.@(js|jsx|ts|tsx)" | ||
], | ||
addons: [ | ||
"@chakra-ui/storybook-addon", | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
"@storybook/addon-mdx-gfm"], | ||
framework: { | ||
name: "@storybook/nextjs", | ||
options: { | ||
nextConfigPath: "../next.config.js", | ||
} | ||
}, | ||
features: { | ||
// emotionAlias: false | ||
}, | ||
typescript: { | ||
reactDocgen: "react-docgen" | ||
}, | ||
staticDirs: ["../assets"], | ||
docs: { | ||
autodocs: true | ||
}, | ||
core: { | ||
disableTelemetry: true | ||
}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
3bbcee6
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.
Successfully deployed to the following URLs:
website-ui-storybook – ./packages/ui
website-ui-storybook-git-main-cse-it.vercel.app
storybook.ui.dev.ntuscse.com
website-ui-storybook-cse-it.vercel.app