chore: migrate codexdash workspace to bun

This commit is contained in:
2026-05-01 08:01:19 +09:00
parent 06a6c6a000
commit e51c129eb6
8 changed files with 2171 additions and 8482 deletions

2
.gitignore vendored
View File

@@ -1,5 +1,5 @@
node_modules node_modules
.pnpm-store bun-debug.log*
.env .env
.env.* .env.*
!.env.example !.env.example

View File

@@ -36,12 +36,11 @@ This flow works best when the local callback bridge is reachable on `localhost:1
## Local development ## Local development
```bash ```bash
pnpm install bun install
pnpm --filter @codexdash/api exec prisma generate cd apps/api && DATABASE_URL=file:./dev.db bunx prisma db push --accept-data-loss
cd apps/api && DATABASE_URL=file:./dev.db pnpm exec prisma db push --accept-data-loss
cd ../.. cd ../..
pnpm --filter @codexdash/api start:dev bun run dev:api
pnpm --filter @codexdash/web dev --host 0.0.0.0 bun run dev:web -- --host 0.0.0.0
``` ```
## Environment variables ## Environment variables
@@ -60,9 +59,9 @@ VITE_API_BASE_URL=http://localhost:3001
## Verification ## Verification
```bash ```bash
pnpm lint bun run lint
pnpm test bun run test
pnpm build bun run build
curl http://localhost:3001/health curl http://localhost:3001/health
``` ```

View File

@@ -28,33 +28,33 @@
## Project setup ## Project setup
```bash ```bash
$ pnpm install $ bun install
``` ```
## Compile and run the project ## Compile and run the project
```bash ```bash
# development # development
$ pnpm run start $ bun run start
# watch mode # watch mode
$ pnpm run start:dev $ bun run start:dev
# production mode # production mode
$ pnpm run start:prod $ bun run start:prod
``` ```
## Run tests ## Run tests
```bash ```bash
# unit tests # unit tests
$ pnpm run test $ bun run test
# e2e tests # e2e tests
$ pnpm run test:e2e $ bun run test:e2e
# test coverage # test coverage
$ pnpm run test:cov $ bunx jest --coverage
``` ```
## Deployment ## Deployment
@@ -64,7 +64,7 @@ When you're ready to deploy your NestJS application to production, there are som
If you are looking for a cloud-based platform to deploy your NestJS application, check out [Mau](https://mau.nestjs.com), our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps: If you are looking for a cloud-based platform to deploy your NestJS application, check out [Mau](https://mau.nestjs.com), our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:
```bash ```bash
$ pnpm install -g @nestjs/mau $ bun add -g @nestjs/mau
$ mau deploy $ mau deploy
``` ```

2
apps/web/.gitignore vendored
View File

@@ -4,7 +4,7 @@ logs
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
pnpm-debug.log* bun-debug.log*
lerna-debug.log* lerna-debug.log*
node_modules node_modules

2133
bun.lock Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -2,13 +2,26 @@
"name": "codexdash", "name": "codexdash",
"private": true, "private": true,
"version": "0.1.0", "version": "0.1.0",
"packageManager": "pnpm@10.11.1", "packageManager": "bun@1.3.13",
"workspaces": [
"apps/*",
"packages/*"
],
"trustedDependencies": [
"@nestjs/core",
"@prisma/client",
"@prisma/engines",
"argon2",
"prisma",
"unrs-resolver"
],
"scripts": { "scripts": {
"dev": "pnpm -r --parallel --filter @codexdash/api --filter @codexdash/web dev", "dev": "bun run --filter @codexdash/api --filter @codexdash/web --parallel dev",
"dev:api": "pnpm --filter @codexdash/api start:dev", "dev:api": "bun run --filter @codexdash/api start:dev",
"dev:web": "pnpm --filter @codexdash/web dev", "dev:web": "bun run --filter @codexdash/web dev",
"build": "pnpm -r build", "build": "bun run --filter @codexdash/api --filter @codexdash/web build",
"lint": "pnpm -r lint", "lint": "bun run --filter @codexdash/api --filter @codexdash/web lint",
"test": "pnpm -r test" "test": "bun run --filter @codexdash/api --if-present test",
"postinstall": "bun run --filter @codexdash/api prisma:generate"
} }
} }

8446
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +0,0 @@
packages:
- apps/*
- packages/*
onlyBuiltDependencies:
- '@nestjs/core'
- '@prisma/client'
- '@prisma/engines'
- argon2
- prisma
- unrs-resolver