Compare commits

..

3 commits

Author SHA1 Message Date
Nicolas HOARAU 8a4642980f ignore opencode config
Some checks failed
ci / ci (push) Failing after 38s
2026-05-31 22:25:19 +04:00
Nicolas HOARAU e9a3eda9b2 fix api dev 2026-05-31 22:24:15 +04:00
Nicolas HOARAU 34d77ad588 WIP : setup turborepo 2026-05-31 19:55:55 +04:00
10 changed files with 2223 additions and 686 deletions

6
.gitignore vendored
View file

@ -1,5 +1,9 @@
node_modules
.turbo
#Ignore vscode AI rules
.github/instructions/codacy.instructions.md
packages/db/dist
opencode.json

View file

@ -8,21 +8,24 @@
"scripts": {
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start": "nest build && node dist/main.js",
"dev": "nest start --watch",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"start:prod": "node dist/main.js",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "vitest run",
"test:watch": "vitest",
"test:cov": "vitest run --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "vitest run --config ./vitest.config.e2e.ts"
"test:e2e": "vitest run --config ./vitest.config.e2e.ts",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@nestjs/common": "^11.0.1",
"@nestjs/core": "^11.0.1",
"@nestjs/platform-express": "^11.0.1",
"@proj/db": "workspace:*",
"drizzle-orm": "^0.45.1",
"postgres": "^3.4.8",
"reflect-metadata": "^0.2.2",

View file

@ -1,4 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
"exclude": ["node_modules", "test", "dist", "vitest.config.ts", "vitest.config.e2e.ts", "**/*spec.ts"]
}

View file

@ -12,18 +12,14 @@
"allowSyntheticDefaultImports": true,
"target": "ES2023",
"sourceMap": true,
"rootDir": "../..",
"rootDir": "src",
"outDir": "./dist",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"noImplicitAny": false,
"strictBindCallApply": false,
"noFallthroughCasesInSwitch": false,
"paths": {
"@proj/db": ["../../packages/db/index.ts"],
"@proj/db/*": ["../../packages/db/*"]
}
}
"noFallthroughCasesInSwitch": false
},
"include": ["src/**/*.ts"]
}

View file

@ -19,7 +19,8 @@
"test:unit": "vitest --project unit",
"test:nuxt": "vitest --project nuxt",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui"
"test:e2e:ui": "playwright test --ui",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@iconify-json/lucide": "^1.2.87",

View file

@ -9,6 +9,7 @@
"clean": "turbo clean && rm -rf node_modules"
},
"devDependencies": {
"turbo": "latest"
"@ai-sdk/openai-compatible": "^2.0.48",
"turbo": "^2.9.16"
}
}

View file

@ -1,9 +1,10 @@
{
"name": "@proj/db",
"version": "0.0.0",
"main": "./index.ts",
"types": "./index.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.json",
"db:generate": "drizzle-kit generate:pg",
"db:push": "drizzle-kit push:pg"
},
@ -12,6 +13,8 @@
"postgres": "latest"
},
"devDependencies": {
"drizzle-kit": "latest"
"@types/node": "^22.0.0",
"drizzle-kit": "latest",
"typescript": "^5.7.0"
}
}

18
packages/db/tsconfig.json Normal file
View file

@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "ES2023",
"module": "nodenext",
"moduleResolution": "nodenext",
"outDir": "./dist",
"rootDir": ".",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["*.ts"],
"exclude": ["dist"]
}

File diff suppressed because it is too large Load diff

16
turbo.json Normal file
View file

@ -0,0 +1,16 @@
{
"$schema": "https://turborepo.dev/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"check-types": {
"dependsOn": ["^check-types"]
},
"dev": {
"persistent": true,
"cache": false
}
}
}