chore: initialize monorepo with Turborepo and pnpm

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ivan
2026-02-01 06:08:36 +00:00
parent 8dbd20950e
commit a5a68cc54d
8 changed files with 92 additions and 0 deletions

48
.gitignore vendored Normal file
View File

@@ -0,0 +1,48 @@
# Dependencies
node_modules
.pnpm-store
# Build outputs
.next
dist
build
out
# Turborepo
.turbo
# Environment files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.env*.local
# IDE
.idea
.vscode
*.swp
*.swo
# OS files
.DS_Store
Thumbs.db
# Debug logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Testing
coverage
.nyc_output
# TypeScript
*.tsbuildinfo
# Misc
*.log
*.pid
*.seed

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
20.11.0

0
apps/mobile/.gitkeep Normal file
View File

0
apps/web/.gitkeep Normal file
View File

16
package.json Normal file
View File

@@ -0,0 +1,16 @@
{
"name": "padel-pro",
"private": true,
"scripts": {
"dev": "turbo dev",
"build": "turbo build",
"lint": "turbo lint",
"type-check": "turbo type-check",
"db:generate": "turbo db:generate",
"db:push": "turbo db:push"
},
"devDependencies": {
"turbo": "^2.0.0"
},
"packageManager": "pnpm@8.15.0"
}

0
packages/shared/.gitkeep Normal file
View File

3
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,3 @@
packages:
- "apps/*"
- "packages/*"

24
turbo.json Normal file
View File

@@ -0,0 +1,24 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
},
"dev": {
"cache": false,
"persistent": true
},
"lint": {},
"type-check": {
"dependsOn": ["^build"]
},
"db:generate": {
"cache": false
},
"db:push": {
"cache": false
}
}
}