40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
|
{
|
||
|
"name": "reactssr",
|
||
|
"private": true,
|
||
|
"version": "0.0.0",
|
||
|
"type": "module",
|
||
|
"main": "server.ts",
|
||
|
"scripts": {
|
||
|
"start": "npm run dev",
|
||
|
"dev": "nodemon server.ts",
|
||
|
"build": "tsc && vite build",
|
||
|
"build:client": "vite build --outDir dist/client --ssrManifest",
|
||
|
"build:server": "vite build --ssr src/entry-server.tsx --outDir dist/server",
|
||
|
"serve": "cross-env NODE_ENV=production nodemon server.ts",
|
||
|
"debug": "node --inspect-brk server"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"nodemon": "^3.0.1",
|
||
|
"react": "^18.2.0",
|
||
|
"react-dom": "^18.2.0",
|
||
|
"react-router-dom": "^6.15.0"
|
||
|
},
|
||
|
"devDependencies": {
|
||
|
"@types/compression": "^1.7.2",
|
||
|
"@types/express": "^4.17.17",
|
||
|
"@types/node": "^20.5.7",
|
||
|
"@types/react": "^18.2.15",
|
||
|
"@types/react-dom": "^18.2.7",
|
||
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
||
|
"@typescript-eslint/parser": "^6.0.0",
|
||
|
"@vitejs/plugin-react": "^4.0.3",
|
||
|
"compression": "^1.7.4",
|
||
|
"eslint": "^8.45.0",
|
||
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||
|
"eslint-plugin-react-refresh": "^0.4.3",
|
||
|
"express": "^4.18.2",
|
||
|
"serve-static": "^1.15.0",
|
||
|
"typescript": "^5.0.2",
|
||
|
"vite": "^4.4.5"
|
||
|
}
|
||
|
}
|