chore: migrate codexdash workspace to bun
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,5 @@
|
||||
node_modules
|
||||
.pnpm-store
|
||||
bun-debug.log*
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
15
README.md
15
README.md
@@ -36,12 +36,11 @@ This flow works best when the local callback bridge is reachable on `localhost:1
|
||||
## Local development
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
pnpm --filter @codexdash/api exec prisma generate
|
||||
cd apps/api && DATABASE_URL=file:./dev.db pnpm exec prisma db push --accept-data-loss
|
||||
bun install
|
||||
cd apps/api && DATABASE_URL=file:./dev.db bunx prisma db push --accept-data-loss
|
||||
cd ../..
|
||||
pnpm --filter @codexdash/api start:dev
|
||||
pnpm --filter @codexdash/web dev --host 0.0.0.0
|
||||
bun run dev:api
|
||||
bun run dev:web -- --host 0.0.0.0
|
||||
```
|
||||
|
||||
## Environment variables
|
||||
@@ -60,9 +59,9 @@ VITE_API_BASE_URL=http://localhost:3001
|
||||
## Verification
|
||||
|
||||
```bash
|
||||
pnpm lint
|
||||
pnpm test
|
||||
pnpm build
|
||||
bun run lint
|
||||
bun run test
|
||||
bun run build
|
||||
curl http://localhost:3001/health
|
||||
```
|
||||
|
||||
|
||||
@@ -28,33 +28,33 @@
|
||||
## Project setup
|
||||
|
||||
```bash
|
||||
$ pnpm install
|
||||
$ bun install
|
||||
```
|
||||
|
||||
## Compile and run the project
|
||||
|
||||
```bash
|
||||
# development
|
||||
$ pnpm run start
|
||||
$ bun run start
|
||||
|
||||
# watch mode
|
||||
$ pnpm run start:dev
|
||||
$ bun run start:dev
|
||||
|
||||
# production mode
|
||||
$ pnpm run start:prod
|
||||
$ bun run start:prod
|
||||
```
|
||||
|
||||
## Run tests
|
||||
|
||||
```bash
|
||||
# unit tests
|
||||
$ pnpm run test
|
||||
$ bun run test
|
||||
|
||||
# e2e tests
|
||||
$ pnpm run test:e2e
|
||||
$ bun run test:e2e
|
||||
|
||||
# test coverage
|
||||
$ pnpm run test:cov
|
||||
$ bunx jest --coverage
|
||||
```
|
||||
|
||||
## 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:
|
||||
|
||||
```bash
|
||||
$ pnpm install -g @nestjs/mau
|
||||
$ bun add -g @nestjs/mau
|
||||
$ mau deploy
|
||||
```
|
||||
|
||||
|
||||
2
apps/web/.gitignore
vendored
2
apps/web/.gitignore
vendored
@@ -4,7 +4,7 @@ logs
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
bun-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
|
||||
29
package.json
29
package.json
@@ -2,13 +2,26 @@
|
||||
"name": "codexdash",
|
||||
"private": true,
|
||||
"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": {
|
||||
"dev": "pnpm -r --parallel --filter @codexdash/api --filter @codexdash/web dev",
|
||||
"dev:api": "pnpm --filter @codexdash/api start:dev",
|
||||
"dev:web": "pnpm --filter @codexdash/web dev",
|
||||
"build": "pnpm -r build",
|
||||
"lint": "pnpm -r lint",
|
||||
"test": "pnpm -r test"
|
||||
"dev": "bun run --filter @codexdash/api --filter @codexdash/web --parallel dev",
|
||||
"dev:api": "bun run --filter @codexdash/api start:dev",
|
||||
"dev:web": "bun run --filter @codexdash/web dev",
|
||||
"build": "bun run --filter @codexdash/api --filter @codexdash/web build",
|
||||
"lint": "bun run --filter @codexdash/api --filter @codexdash/web lint",
|
||||
"test": "bun run --filter @codexdash/api --if-present test",
|
||||
"postinstall": "bun run --filter @codexdash/api prisma:generate"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
8446
pnpm-lock.yaml
generated
8446
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,10 +0,0 @@
|
||||
packages:
|
||||
- apps/*
|
||||
- packages/*
|
||||
onlyBuiltDependencies:
|
||||
- '@nestjs/core'
|
||||
- '@prisma/client'
|
||||
- '@prisma/engines'
|
||||
- argon2
|
||||
- prisma
|
||||
- unrs-resolver
|
||||
Reference in New Issue
Block a user