This commit is contained in:
2026-06-25 12:24:51 -05:00
parent b58e50e423
commit f31fcd9e84
4 changed files with 52 additions and 4 deletions

View File

@@ -5,11 +5,11 @@
"type": "module",
"scripts": {
"dev": "concurrently -n API,UI -c cyan,magenta \"npm run api:dev\" \"npm run ui:dev\"",
"prod": "if [ ! -f dist/index.html ]; then npm run build; fi; concurrently -n API,UI -c cyan,magenta \"npm run api:prod\" \"npm run ui:prod\"",
"api:dev": "NODE_ENV=development nodemon server/index.js",
"api:prod": "NODE_ENV=production node server/index.js",
"prod": "node scripts/ensure-build.mjs && concurrently -n API,UI -c cyan,magenta \"npm run api:prod\" \"npm run ui:prod\"",
"api:dev": "node scripts/start-api.mjs development --watch",
"api:prod": "node scripts/start-api.mjs production",
"ui:dev": "vite --host 0.0.0.0 --port 3000 --strictPort",
"ui:prod": "NODE_ENV=production vite preview --host 0.0.0.0 --port 3000 --strictPort",
"ui:prod": "node scripts/start-ui-prod.mjs",
"start": "npm run prod",
"test": "node --test 'server/test/*.test.mjs'",
"build": "vite build",