Skip to content

Commit

Permalink
feat(react): update react storybook to v7.6.7
Browse files Browse the repository at this point in the history
Install storybook v7.6.7, update scripts, add new Storybook plugin for GitHub-flavoured markdown,
fixes to stories

. #977
  • Loading branch information
GCHQ-Developer-112 authored and zxh722 committed Jan 29, 2024
1 parent 31401a0 commit d865f83
Show file tree
Hide file tree
Showing 12 changed files with 38,869 additions and 17,475 deletions.
18 changes: 18 additions & 0 deletions packages/react/.babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100,
"safari": 15,
"firefox": 91
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
],
"plugins": []
}
16 changes: 13 additions & 3 deletions packages/react/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
module.exports = {
"core": {
builder: "webpack5",
disableTelemetry: true,
disableTelemetry: true
},

"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],

"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-postcss",
"@storybook/addon-a11y",
"@storybook/addon-mdx-gfm"
],
"framework": "@storybook/react"

"framework": {
name: "@storybook/react-webpack5",
options: {}
},

docs: {
autodocs: true
}
}
Loading

0 comments on commit d865f83

Please sign in to comment.