Skip to content

Commit f27b5ee

Browse files
Feature/upgrade sb deps (#614)
* feat: upgrade storybook * feat: add babel * feat: upgrade other libraries * feat: upgrade sb
1 parent 3214fa2 commit f27b5ee

File tree

164 files changed

+8389
-18987
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+8389
-18987
lines changed

.babelrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"@babel/preset-typescript",
13-
"@babel/preset-react"
13+
["@babel/preset-react", {"runtime":"automatic"}]
1414
],
1515
"plugins": []
1616
}

.storybook/main.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const config = {
77
'@storybook/addon-docs',
88
'@storybook/addon-controls',
99
'storybook-css-modules-preset',
10+
'@storybook/preview-api',
1011
'@storybook/addon-a11y',
1112
{
1213
name: "storybook-design-token",
@@ -17,12 +18,17 @@ const config = {
1718
autodocs: "tag",
1819
},
1920
},
20-
'@storybook/addon-mdx-gfm'
21+
'@storybook/addon-mdx-gfm',
22+
'@storybook/addon-webpack5-compiler-babel'
2123
],
2224
framework: {
2325
name: '@storybook/react-webpack5',
2426
options: {}
2527
},
28+
docs: {
29+
autodocs: true
30+
},
31+
staticDirs: ["../static"],
2632
};
2733

2834
export default config;

.storybook/manager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addons } from '@storybook/addons';
1+
import { addons } from '@storybook/manager-api';
22
import camTheme from './capgeminiTheme';
33

44
addons.setConfig({

example/package.json

+13-21
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,17 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@fortawesome/fontawesome-svg-core": "6.4.2",
7-
"@fortawesome/free-solid-svg-icons": "6.4.2",
6+
"@fortawesome/fontawesome-svg-core": "6.5.1",
7+
"@fortawesome/free-solid-svg-icons": "6.5.1",
88
"@fortawesome/react-fontawesome": "0.2.0",
9-
"@types/node": "20.5.7",
10-
"react-router-dom": "6.15.0",
11-
"react-scripts": "5.0.1",
12-
"typescript": "5.2.2"
9+
"react-router-dom": "6.22.3"
1310
},
1411
"scripts": {
1512
"start": "vite",
1613
"build": "tsc && vite build",
1714
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1815
"preview": "vite preview"
1916
},
20-
"eslintConfig": {
21-
"extends": [
22-
"react-app",
23-
"react-app/jest"
24-
]
25-
},
2617
"browserslist": {
2718
"production": [
2819
">0.2%",
@@ -36,16 +27,17 @@
3627
]
3728
},
3829
"devDependencies": {
39-
"@typescript-eslint/eslint-plugin": "^7.0.2",
40-
"@typescript-eslint/parser": "^7.0.2",
41-
"@vitejs/plugin-react": "^4.2.1",
42-
"eslint": "^8.56.0",
43-
"eslint-plugin-react-hooks": "^4.6.0",
44-
"eslint-plugin-react-refresh": "^0.4.5",
45-
"typescript": "^5.2.2",
46-
"vite": "^5.1.4",
30+
"@types/node": "20.11.30",
4731
"@types/react-router-dom": "5.3.3",
32+
"@typescript-eslint/eslint-plugin": "7.4.0",
33+
"@typescript-eslint/parser": "7.4.0",
34+
"@vitejs/plugin-react": "4.2.1",
35+
"eslint": "8.57.0",
36+
"eslint-plugin-react-hooks": "4.6.0",
37+
"eslint-plugin-react-refresh": "0.4.6",
4838
"node-sass": "9.0.0",
49-
"web-vitals": "3.4.0"
39+
"typescript": "5.4.3",
40+
"vite": "5.2.6",
41+
"web-vitals": "3.5.2"
5042
}
5143
}

example/src/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'react-app-polyfill/ie11';
21
import reportWebVitals from './reportWebVitals';
32
import ReactDOM from 'react-dom/client';
43
import { BrowserRouter, Route, Routes } from 'react-router-dom';

example/src/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"@storybook/addon-essentials": "^6.3.8",
7474
"@storybook/addon-knobs": "^6.3.1",
7575
"@storybook/addon-links": "^6.3.8",
76-
"@storybook/addons": "^6.3.8",
7776
"@storybook/preset-typescript": "^3.0.0",
7877
"@storybook/react": "^6.3.8",
7978
"@storybook/theming": "^6.3.8",

example/src/pages/HomePage.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'react-app-polyfill/ie11';
2-
import * as React from 'react';
31
import { Link } from 'react-router-dom';
42

53
export const Home = () => (

0 commit comments

Comments
 (0)