Some checks failed
Deploy to Production / test (push) Failing after 32s
Add chess as the first game plugin using the existing multiplayer framework. Server-side game logic uses chess.js with server-authoritative clock management. Client uses react-chessboard v5 with cburnett piece set, drag-and-drop + click-to-move, configurable time controls (bullet/blitz/rapid/classical/none), draw offers, resignation, and timeout detection. Extends the game framework with room creation options to support per-game configuration. Includes 57 tests covering all code paths. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
51 lines
2.0 KiB
JSON
51 lines
2.0 KiB
JSON
{
|
|
"name": "app",
|
|
"version": "1.1.5",
|
|
"module": "bot/index.ts",
|
|
"type": "module",
|
|
"private": true,
|
|
"workspaces": ["panel"],
|
|
"devDependencies": {
|
|
"@types/bun": "latest",
|
|
"drizzle-kit": "^0.31.8"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"scripts": {
|
|
"dev": "bun --watch bot/index.ts",
|
|
"logs": "bash shared/scripts/logs.sh",
|
|
"remote": "bash shared/scripts/remote.sh",
|
|
"db:generate": "docker compose run --rm app drizzle-kit generate",
|
|
"db:migrate": "docker compose run --rm app drizzle-kit migrate",
|
|
"generate": "bun run db:generate",
|
|
"migrate": "bun run db:migrate",
|
|
"db:push": "docker compose run --rm app drizzle-kit push",
|
|
"db:push:local": "drizzle-kit push",
|
|
"db:studio": "drizzle-kit studio --port 4983 --host 0.0.0.0",
|
|
"db:backup": "bash shared/scripts/db-backup.sh",
|
|
"db:restore": "bash shared/scripts/db-restore.sh",
|
|
"db:migrate-config": "docker compose run --rm app bun shared/scripts/migrate-config-to-db.ts",
|
|
"db:migrate-game-config": "docker compose run --rm app bun shared/scripts/migrate-game-settings-to-db.ts",
|
|
"db:migrate-all": "docker compose run --rm app sh -c 'bun shared/scripts/migrate-config-to-db.ts && bun shared/scripts/migrate-game-settings-to-db.ts'",
|
|
"test": "bash shared/scripts/test-sequential.sh",
|
|
"test:ci": "bash shared/scripts/test-sequential.sh --integration",
|
|
"test:simulate-ci": "bash shared/scripts/simulate-ci.sh",
|
|
"panel:dev": "cd panel && bun run dev",
|
|
"panel:build": "cd panel && bun run build",
|
|
"deploy": "bash shared/scripts/deploy.sh",
|
|
"deploy:remote": "bash shared/scripts/deploy-remote.sh",
|
|
"setup-server": "bash shared/scripts/setup-server.sh",
|
|
"docker:cleanup": "bash shared/scripts/docker-cleanup.sh"
|
|
},
|
|
"dependencies": {
|
|
"@napi-rs/canvas": "^0.1.89",
|
|
"chess.js": "^1.4.0",
|
|
"discord.js": "^14.25.1",
|
|
"dotenv": "^17.2.3",
|
|
"drizzle-orm": "^0.44.7",
|
|
"mitt": "^3.0.1",
|
|
"postgres": "^3.4.8",
|
|
"zod": "^4.3.6"
|
|
}
|
|
} |