feat: migrate to vite

This commit is contained in:
karishmas6
2024-10-24 22:23:41 +05:30
parent c7b704800b
commit d8c46297d3
4 changed files with 46 additions and 31 deletions

View File

@@ -11,15 +11,13 @@
"@mui/lab": "^5.0.0-alpha.80",
"@mui/material": "^5.6.2",
"@react-oauth/google": "^0.12.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.1.1",
"@testing-library/user-event": "^13.5.0",
"@types/bcrypt": "^5.0.2",
"@types/body-parser": "^1.19.5",
"@types/csurf": "^1.11.5",
"@types/jest": "^27.4.1",
"@types/jsonwebtoken": "^9.0.7",
"@types/node": "^16.11.27",
"@types/node": "22.7.9",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.1",
"@types/uuid": "^8.3.4",
@@ -55,9 +53,7 @@
"react-dom": "^18.0.0",
"react-highlight": "0.15.0",
"react-router-dom": "^6.26.1",
"react-scripts": "5.0.1",
"react-simple-code-editor": "^0.11.2",
"react-split": "^2.0.14",
"react-transition-group": "^4.4.2",
"sequelize": "^6.37.3",
"sequelize-typescript": "^2.1.6",
@@ -72,46 +68,33 @@
"winston": "^3.5.1"
},
"scripts": {
"start": "concurrently -k \"npm run server\" \"npm run client\"",
"server": "./node_modules/.bin/nodemon server/src/server.ts",
"client": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test",
"eject": "react-scripts eject",
"lint": "./node_modules/.bin/eslint ."
},
"start": "concurrently -k \"npm run server\" \"npm run client\"",
"server": "./node_modules/.bin/nodemon server/src/server.ts",
"client": "vite",
"build": "vite build",
"test": "vite preview",
"lint": "./node_modules/.bin/eslint ."
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
"react-app"
]
},
"devDependencies": {
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.13",
"@types/loglevel": "^1.6.3",
"@types/node": "^17.0.15",
"@types/node": "22.7.9",
"@types/node-cron": "^3.0.11",
"@types/prismjs": "^1.26.0",
"@types/react-highlight": "^0.12.5",
"@types/react-transition-group": "^4.4.4",
"@types/styled-components": "^5.1.23",
"@vitejs/plugin-react": "^4.3.3",
"ajv": "^8.8.2",
"concurrently": "^7.0.0",
"nodemon": "^2.0.15",
"react-app-rewired": "^2.2.1",
"ts-node": "^10.4.0"
"ts-node": "^10.4.0",
"vite": "^5.4.10"
}
}