feat: infra 패키지 추가 및 PostgreSQL, Redis 커넥터 구현

This commit is contained in:
2025-12-28 12:18:42 +00:00
parent 77e5b251ef
commit 27b243b121
9 changed files with 37 additions and 10 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ Vue 3 frontends.
## Planned Layout
- `/packages/common`: shared utilities and type definitions
- `/packages/common`: shared utilities and type definitions (no infra)
- `/packages/infra`: Prisma/Redis connectors and other runtime infra
- `/packages/logic`: pure game logic with DI and interfaces
- `/app/gateway-frontend`: gateway UI
- `/app/gateway-api`: gateway service
+2 -7
View File
@@ -11,11 +11,6 @@
"lint": "node -e \"console.log('lint not configured')\"",
"test": "node -e \"console.log('test not configured')\""
},
"dependencies": {
"@prisma/client": "^5.18.0",
"redis": "^4.7.0"
},
"devDependencies": {
"prisma": "^5.18.0"
}
"dependencies": {},
"devDependencies": {}
}
+1 -2
View File
@@ -1,2 +1 @@
export * from './infra/postgres.js';
export * from './infra/redis.js';
export {};
+21
View File
@@ -0,0 +1,21 @@
{
"name": "@sammo-ts/infra",
"private": true,
"version": "0.0.0",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "node -e \"console.log('dev not configured')\"",
"lint": "node -e \"console.log('lint not configured')\"",
"test": "node -e \"console.log('test not configured')\""
},
"dependencies": {
"@prisma/client": "^5.18.0",
"redis": "^4.7.0"
},
"devDependencies": {
"prisma": "^5.18.0"
}
}
+2
View File
@@ -0,0 +1,2 @@
export * from './postgres.js';
export * from './redis.js';
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"composite": true
},
"include": ["src"]
}