Updated setup to vite and moved to hooks instead of class

This commit is contained in:
Hubert Walczak
2023-11-02 12:11:03 +01:00
parent 44f173f23c
commit f88baa5fc9
90 changed files with 7411 additions and 2706 deletions
+36 -49
View File
@@ -1,60 +1,47 @@
{
"name": "lexogrine_cs2_hud",
"version": "1.0.1",
"homepage": "./",
"name": "cs2-react-hud",
"private": true,
"dependencies": {
"@craco/craco": "^5.7.0",
"@types/jest": "24.0.19",
"@types/node": "16.11.20",
"@types/react": "17.0.38",
"@types/react-dom": "17.0.11",
"@types/simple-peer": "^9.11.3",
"buffer": "^6.0.3",
"csgogsi-socket": "^2.7.2",
"query-string": "^6.12.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "5.0.0",
"simple-peer": "^9.11.0",
"simple-websockets": "^1.1.0",
"typescript": "^4.5.4",
"uuid": "^8.3.2"
},
"license": "GPL-3.0",
"version": "1.0.2",
"type": "module",
"scripts": {
"zip": "npm-build-zip",
"start": "craco start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"dev": "vite --host",
"start": "vite --host",
"build": "tsc && vite build",
"pack": "npm run build && npm run zip",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"sign": "npm run build && node sign.js && npm-build-zip --name=signed"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"dependencies": {
"csgogsi": "^3.0.1",
"jsonwebtoken": "^9.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"simple-peer": "^9.11.1",
"simple-websockets": "^1.2.0",
"socket.io-client": "^4.7.2",
"uuid": "^9.0.1"
},
"license": "MIT",
"devDependencies": {
"@types/history": "^4.7.5",
"@types/socket.io-client": "^1.4.32",
"@types/uuid": "^8.3.1",
"internal-ip": "^6.2.0",
"jsonwebtoken": "^8.5.1",
"npm-build-zip": "^1.0.2",
"open": "^8.0.2",
"sass": "^1.32.5",
"socket.io-client": "^2.4.0"
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@types/simple-peer": "^9.11.5",
"@types/uuid": "^9.0.4",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"eslint": "^8.45.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"events": "^3.3.0",
"npm-build-zip": "^1.0.4",
"process": "^0.11.10",
"sass": "^1.68.0",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-compatible-readable-stream": "^3.6.1",
"vite-plugin-svgr": "^4.1.0"
}
}