Files
kakeibo/package.json
T

28 lines
1.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "kakeibo",
"private": true,
"description": "Kakeibo — Kişisel Ev Finans Defteri",
"scripts": {
"postinstall": "npm --prefix frontend install",
"predev": "npm run db:up",
"dev": "concurrently -k -n api,web -c blue,green \"npm:dev:api\" \"npm:dev:web\"",
"dev:api": "bash scripts/stop-stale-api.sh 8080 && cd backend && cargo watch -q -c -w src -w Cargo.toml -x run",
"dev:web": "npm --prefix frontend run dev",
"predev:host": "npm run db:up",
"dev:host": "concurrently -k -n api,web -c blue,green \"npm:dev:api\" \"npm --prefix frontend run dev -- --host\"",
"db:up": "docker compose -f docker-compose.dev.yml up -d --wait",
"db:down": "docker compose -f docker-compose.dev.yml stop",
"db:backup": "MONGO_CONTAINER=kakeibo-mongo DB_NAME=kakeibo_dev BACKUP_DIR=./backups scripts/backup.sh",
"db:restore": "MONGO_CONTAINER=kakeibo-mongo BACKUP_DIR=./backups scripts/restore.sh",
"db:seed": "echo 'Seed betiği Faz 1-4 arasında eklenecek.'",
"db:reset": "docker exec kakeibo-mongo mongosh --quiet --eval \"db.getSiblingDB('kakeibo_dev').dropDatabase(); db.adminCommand({listDatabases:1}).databases.filter(d => d.name.startsWith('kakeibo_test_')).forEach(d => db.getSiblingDB(d.name).dropDatabase()); print('kakeibo_dev ve test veritabanları sıfırlandı.')\"",
"test": "cd backend && cargo test && cd .. && npm --prefix frontend test",
"lint": "cd backend && cargo clippy && cd .. && npm --prefix frontend run lint",
"icons": "bash scripts/icons.sh",
"types": "cd backend && cargo test -q export_bindings"
},
"devDependencies": {
"concurrently": "^10.0.7"
}
}