chore(dev): add start:dev (clean+backend+vite séquentiel) [skip ci]
This commit is contained in:
parent
1a39f28b0b
commit
e82f02039f
@ -96,6 +96,7 @@ VITE_INFOGREFFE_API_URL=https://api.infogreffe.fr
|
|||||||
```bash
|
```bash
|
||||||
# Développement
|
# Développement
|
||||||
npm run start:all # Démarrer backend (PM2) + frontend (Vite) ensemble
|
npm run start:all # Démarrer backend (PM2) + frontend (Vite) ensemble
|
||||||
|
npm run start:dev # Clean complet, backend restart, front Vite (séquentiel)
|
||||||
npm run dev # Serveur de développement (frontend seul)
|
npm run dev # Serveur de développement (frontend seul)
|
||||||
npm run build # Build de production
|
npm run build # Build de production
|
||||||
npm run preview # Prévisualisation du build
|
npm run preview # Prévisualisation du build
|
||||||
|
|||||||
@ -11,8 +11,10 @@
|
|||||||
"clean:all": "rm -rf node_modules backend/node_modules dist cache log uploads backend/cache backend/uploads && mkdir -p uploads cache log backend/uploads backend/cache && npm ci --no-audit --no-fund && (cd backend && npm ci --no-audit --no-fund)",
|
"clean:all": "rm -rf node_modules backend/node_modules dist cache log uploads backend/cache backend/uploads && mkdir -p uploads cache log backend/uploads backend/cache && npm ci --no-audit --no-fund && (cd backend && npm ci --no-audit --no-fund)",
|
||||||
"back:up": "npx --yes pm2 start ecosystem.config.cjs --only 4nk-ia-backend --env production",
|
"back:up": "npx --yes pm2 start ecosystem.config.cjs --only 4nk-ia-backend --env production",
|
||||||
"back:restart": "npx --yes pm2 restart 4nk-ia-backend || npx --yes pm2 start ecosystem.config.cjs --only 4nk-ia-backend --env production",
|
"back:restart": "npx --yes pm2 restart 4nk-ia-backend || npx --yes pm2 start ecosystem.config.cjs --only 4nk-ia-backend --env production",
|
||||||
|
"prefront:up": "bash -lc 'p=$(ss -ltnp | grep :5174 | sed -n \"s/.*pid=\\([0-9]*\\).*/\\1/p\"); if [ -n \"$p\" ]; then kill $p; fi'",
|
||||||
"front:up": "vite",
|
"front:up": "vite",
|
||||||
"start:all": "npm run clean:all && concurrently -k -n back,front -c blue,green \"npm:back:restart\" \"npm:front:up\"",
|
"start:all": "npm run clean:all && concurrently -k -n back,front -c blue,green \"npm:back:restart\" \"npm:front:up\"",
|
||||||
|
"start:dev": "npm run clean:all && npm run back:restart && npm run front:up",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"format": "prettier --check .",
|
"format": "prettier --check .",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user