nodemon now watches both server.js and client/src/. On any change, it rebuilds the React app and restarts Express — so git push makes both backend AND frontend changes visible on the hot domain. - dev script simplified to "nodemon" (reads nodemon.json config) - dev:local added for human developers who want Vite HMR
26 lines
724 B
JSON
26 lines
724 B
JSON
{
|
|
"name": "template-001",
|
|
"version": "1.0.0",
|
|
"description": "SAAC company website template — React + shadcn/ui + Express + PostgreSQL",
|
|
"main": "server.js",
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"dev": "nodemon",
|
|
"build": "cd client && npm run build",
|
|
"postinstall": "[ -d client ] && cd client && npm install || true",
|
|
"dev:local": "concurrently \"nodemon server.js\" \"cd client && npm run dev\"",
|
|
"dev:server": "nodemon server.js",
|
|
"dev:client": "cd client && npm run dev"
|
|
},
|
|
"dependencies": {
|
|
"express": "^4.18.2",
|
|
"pg": "^8.11.3",
|
|
"redis": "^4.6.12",
|
|
"cors": "^2.8.5"
|
|
},
|
|
"devDependencies": {
|
|
"nodemon": "^3.0.2",
|
|
"concurrently": "^8.2.2"
|
|
}
|
|
}
|