Cleanup packages and structure

- Remove unused packages
- Swap styled-components for emotion/styled
- Add tsconfig baseUrl and src path
- Upgrade and add mantine packages
This commit is contained in:
jeffvli
2022-10-19 21:23:31 -07:00
parent 9675fd1d8e
commit 3aab920c71
4 changed files with 633 additions and 668 deletions
+2
View File
@@ -5,6 +5,7 @@
import webpack from 'webpack'; import webpack from 'webpack';
import { dependencies as externals } from '../../release/app/package.json'; import { dependencies as externals } from '../../release/app/package.json';
import webpackPaths from './webpack.paths'; import webpackPaths from './webpack.paths';
import { TsconfigPathsPlugin } from 'tsconfig-paths-webpack-plugin';
const configuration: webpack.Configuration = { const configuration: webpack.Configuration = {
externals: [...Object.keys(externals || {})], externals: [...Object.keys(externals || {})],
@@ -48,6 +49,7 @@ const configuration: webpack.Configuration = {
fallback: { fallback: {
child_process: false, child_process: false,
}, },
plugins: [new TsconfigPathsPlugin({ baseUrl: webpackPaths.srcPath })],
modules: [webpackPaths.srcPath, 'node_modules'], modules: [webpackPaths.srcPath, 'node_modules'],
}, },
+612 -660
View File
File diff suppressed because it is too large Load Diff
+13 -6
View File
@@ -175,7 +175,6 @@
"@types/react-virtualized-auto-sizer": "^1.0.1", "@types/react-virtualized-auto-sizer": "^1.0.1",
"@types/react-window": "^1.8.5", "@types/react-window": "^1.8.5",
"@types/react-window-infinite-loader": "^1.0.6", "@types/react-window-infinite-loader": "^1.0.6",
"@types/styled-components": "^5.1.25",
"@types/terser-webpack-plugin": "^5.0.4", "@types/terser-webpack-plugin": "^5.0.4",
"@types/webpack-bundle-analyzer": "^4.4.1", "@types/webpack-bundle-analyzer": "^4.4.1",
"@types/webpack-env": "^1.16.3", "@types/webpack-env": "^1.16.3",
@@ -237,6 +236,7 @@
"ts-jest": "^27.1.4", "ts-jest": "^27.1.4",
"ts-loader": "^9.2.8", "ts-loader": "^9.2.8",
"ts-node": "^10.7.0", "ts-node": "^10.7.0",
"tsconfig-paths-webpack-plugin": "^4.0.0",
"typescript": "^4.6.4", "typescript": "^4.6.4",
"typescript-plugin-styled-components": "^2.0.0", "typescript-plugin-styled-components": "^2.0.0",
"url-loader": "^4.1.1", "url-loader": "^4.1.1",
@@ -249,16 +249,24 @@
"dependencies": { "dependencies": {
"@dnd-kit/core": "^6.0.5", "@dnd-kit/core": "^6.0.5",
"@dnd-kit/modifiers": "^6.0.0", "@dnd-kit/modifiers": "^6.0.0",
"@emotion/react": "^11.9.3", "@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@jellyfin/client-axios": "^10.7.8", "@jellyfin/client-axios": "^10.7.8",
"@mantine/core": "^5.0.0", "@mantine/core": "^5.5.6",
"@mantine/form": "^5.0.0", "@mantine/dates": "^5.5.6",
"@mantine/hooks": "^5.0.0", "@mantine/form": "^5.5.6",
"@mantine/hooks": "^5.5.6",
"@mantine/modals": "^5.5.6",
"@mantine/notifications": "^5.5.6",
"@mantine/spotlight": "^5.5.6",
"ag-grid-community": "^28.0.2", "ag-grid-community": "^28.0.2",
"ag-grid-react": "^28.0.0", "ag-grid-react": "^28.0.0",
"axios": "^0.26.1", "axios": "^0.26.1",
"dayjs": "^1.11.5",
"electron-browser-storage": "^1.0.7",
"electron-debug": "^3.2.0", "electron-debug": "^3.2.0",
"electron-log": "^4.4.6", "electron-log": "^4.4.6",
"electron-settings": "^4.0.2",
"electron-updater": "^4.6.5", "electron-updater": "^4.6.5",
"format-duration": "^2.0.0", "format-duration": "^2.0.0",
"framer-motion": "^6.4.2", "framer-motion": "^6.4.2",
@@ -284,7 +292,6 @@
"react-virtualized-auto-sizer": "^1.0.6", "react-virtualized-auto-sizer": "^1.0.6",
"react-window": "^1.8.7", "react-window": "^1.8.7",
"react-window-infinite-loader": "^1.0.8", "react-window-infinite-loader": "^1.0.8",
"styled-components": "^5.3.5",
"zustand": "^4.0.0-rc.1" "zustand": "^4.0.0-rc.1"
}, },
"resolutions": { "resolutions": {
+4
View File
@@ -3,6 +3,10 @@
"target": "es2021", "target": "es2021",
"module": "commonjs", "module": "commonjs",
"lib": ["dom", "es2021"], "lib": ["dom", "es2021"],
"baseUrl": "./src",
"paths": {
"@/*": ["*"]
},
"declaration": true, "declaration": true,
"declarationMap": true, "declarationMap": true,
"jsx": "react-jsx", "jsx": "react-jsx",