chore(scripts): add clean:all and chain into start:all [skip ci]

This commit is contained in:
4NK IA 2025-09-19 08:19:47 +00:00
parent e12acf91d4
commit 1a39f28b0b
2 changed files with 6 additions and 7 deletions

View File

@ -123,10 +123,8 @@ IMAGE_TAG=0.1.3 ./scripts/docker-push.sh # Pousser vers git.4nkweb.com
### Nettoyage rapide (local) ### Nettoyage rapide (local)
```bash ```bash
# Purger caches/artefacts et réinstaller # Purge et réinstallation
rm -rf node_modules backend/node_modules dist cache log uploads backend/cache backend/uploads npm run clean:all
mkdir -p uploads cache log backend/uploads backend/cache
npm ci && (cd backend && npm ci)
``` ```
## 🏗️ Architecture ## 🏗️ Architecture

View File

@ -8,10 +8,11 @@
"dev": "vite", "dev": "vite",
"prebuild": "node scripts/check-node.mjs", "prebuild": "node scripts/check-node.mjs",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"back:up": "pm2 start ecosystem.config.cjs --only 4nk-ia-backend --env production", "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:restart": "pm2 restart 4nk-ia-backend || 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",
"front:up": "vite", "front:up": "vite",
"start: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\"",
"lint": "eslint .", "lint": "eslint .",
"preview": "vite preview", "preview": "vite preview",
"format": "prettier --check .", "format": "prettier --check .",