Skip to content

Commit 3834908

Browse files
committed
chore(monorepo): rename apps fastify→api next→web
1 parent ebd17e8 commit 3834908

File tree

410 files changed

+267
-291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

410 files changed

+267
-291
lines changed

.coderabbit.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ reviews:
4444
- "!**/gen/**"
4545
- "!**/*.gen.ts"
4646
- "!**/*.gen.js"
47-
- "!apps/fastify/src/db/migrations/**"
47+
- "!apps/api/src/db/migrations/**"
4848

4949
# Documentation assets
5050
- "!**/*.png"
@@ -90,7 +90,7 @@ reviews:
9090
- .cursor/rules/frontend/react.mdc
9191
- .cursor/rules/base/typescript.mdc
9292
93-
- path: "apps/next/**"
93+
- path: "apps/web/**"
9494
instructions: |
9595
- Verify Next.js App Router conventions and React Server Components usage
9696
- Follow all coding standards defined in:
@@ -111,7 +111,7 @@ reviews:
111111
- .cursor/rules/base/docs.mdc
112112
- .cursor/rules/base/typescript.mdc
113113
114-
- path: "apps/fastify/**"
114+
- path: "apps/api/**"
115115
instructions: |
116116
- CRITICAL: never edit db/migrations, openapi schema files directly. All migrations must be created through the typical Drizzle flow and OpenAPI is autogenerated. Always validate no discrepancies.
117117
- Verify Fastify functional patterns and TypeBox schema usage

.cursor/rules/backend/fastify.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Fastify backend development standards and patterns
3-
glob: "apps/fastify/**/*"
3+
glob: "apps/api/**/*"
44
alwaysApply: true
55
---
66

.cursor/rules/frontend/auth.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Next.js auth patterns—single cookie, core client modes, refresh flow
3-
glob: "apps/next/**/*,packages/core/**/*,packages/react/**/*"
3+
glob: "apps/web/**/*,packages/core/**/*,packages/react/**/*"
44
alwaysApply: false
55
---
66

.cursor/rules/frontend/e2e-playwright.mdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
description: Playwright E2E patterns for Next.js and Fastify API
3-
glob: "apps/next/e2e/**/*, apps/next/playwright.config.ts, apps/fastify/test/**/*, apps/fastify/playwright.config.ts"
3+
glob: "apps/web/e2e/**/*, apps/web/playwright.config.ts, apps/api/test/**/*, apps/api/playwright.config.ts"
44
---
55

66
## Config
7-
- Frontend apps (`apps/next`) use **Playwright E2E only** — no Vitest/Testing Library unit or integration tests
7+
- Frontend apps (`apps/web`) use **Playwright E2E only** — no Vitest/Testing Library unit or integration tests
88
- No webServer; URLs from `PLAYWRIGHT_APP_URL` / `PLAYWRIGHT_API_URL` (env or `--app` / `--api` params)
99
- Fastify: only `--api` param; `test:e2e` = URL-based, `test:e2e:local` = spawn API, poll, run, cleanup
1010
- Param format: `--app=URL` or `--app URL`, `--api=URL` or `--api URL`

.cursor/rules/web3/wagmi.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Web3 integration patterns using Wagmi v3
3-
glob: "apps/next/**/*.{ts,tsx}"
3+
glob: "apps/web/**/*.{ts,tsx}"
44
alwaysApply: false
55
---
66

.github/workflows/api-e2e.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: API (E2E)
33
on:
44
pull_request:
55
paths:
6-
- 'apps/fastify/**'
6+
- 'apps/api/**'
77
- 'packages/email/**'
88
- 'packages/sentry/**'
99
- 'packages/utils/**'
@@ -48,17 +48,17 @@ jobs:
4848
- name: Install dependencies
4949
run: pnpm install --frozen-lockfile
5050
- name: Build
51-
run: pnpm turbo run build --filter=@repo/fastify...
51+
run: pnpm turbo run build --filter=@repo/api...
5252
- name: Unit tests
53-
run: pnpm turbo run test --filter=@repo/fastify
53+
run: pnpm turbo run test --filter=@repo/api
5454
- name: Install Playwright
55-
run: pnpm --filter @repo/fastify exec playwright install chromium --with-deps
55+
run: pnpm --filter @repo/api exec playwright install chromium --with-deps
5656
- name: E2E tests (local)
57-
run: pnpm --filter @repo/fastify test:e2e:local
57+
run: pnpm --filter @repo/api test:e2e:local
5858
- name: Upload Playwright report
5959
if: always()
6060
uses: actions/upload-artifact@v4
6161
with:
62-
name: playwright-report-fastify
63-
path: apps/fastify/playwright-report/
62+
name: playwright-report-api
63+
path: apps/api/playwright-report/
6464
retention-days: 30

.github/workflows/packages-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
- name: Install dependencies
4444
run: pnpm install --frozen-lockfile
4545
- name: Generate OpenAPI (for @repo/core)
46-
run: pnpm turbo run generate:openapi --filter=@repo/fastify
46+
run: pnpm turbo run generate:openapi --filter=@repo/api
4747
- name: Build packages
48-
run: pnpm turbo run build --filter='!@repo/next' --filter='!@repo/fastify' --filter='!@repo/docu'
48+
run: pnpm turbo run build --filter='!@repo/web' --filter='!@repo/api' --filter='!@repo/docu'
4949
- name: Unit tests (packages only)
50-
run: pnpm turbo run test --filter='!@repo/next' --filter='!@repo/fastify' --filter='!@repo/docu'
50+
run: pnpm turbo run test --filter='!@repo/web' --filter='!@repo/api' --filter='!@repo/docu'
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ name: Next (E2E)
33
on:
44
pull_request:
55
paths:
6-
- 'apps/next/**'
6+
- 'apps/web/**'
77
- 'scripts/**'
88
- 'packages/core/**'
99
- 'packages/react/**'
1010
- 'packages/ui/**'
1111
- 'packages/utils/**'
1212
- 'packages/eslint-config/**'
1313
- 'packages/typescript-config/**'
14-
- 'apps/fastify/openapi/**'
14+
- 'apps/api/openapi/**'
1515
- 'pnpm-lock.yaml'
1616
- 'package.json'
1717
- 'turbo.json'
1818

1919
concurrency:
20-
group: next-e2e-${{ github.ref }}
20+
group: web-e2e-${{ github.ref }}
2121
cancel-in-progress: false
2222

2323
env:
@@ -52,19 +52,19 @@ jobs:
5252
- name: Install dependencies
5353
run: pnpm install --frozen-lockfile
5454
- name: Build
55-
run: pnpm turbo run build --filter=@repo/next...
55+
run: pnpm turbo run build --filter=@repo/web...
5656
- name: Unit tests
57-
run: pnpm turbo run test --filter=@repo/next
57+
run: pnpm turbo run test --filter=@repo/web
5858
- name: Install Playwright
59-
run: pnpm --filter @repo/next exec playwright install chromium --with-deps
59+
run: pnpm --filter @repo/web exec playwright install chromium --with-deps
6060
- name: E2E tests (local)
6161
env:
6262
SKIP_BUILD: '1'
63-
run: pnpm --filter @repo/next test:e2e:local
63+
run: pnpm --filter @repo/web test:e2e:local
6464
- name: Upload Playwright report
6565
if: always()
6666
uses: actions/upload-artifact@v4
6767
with:
68-
name: playwright-report-next
69-
path: apps/next/playwright-report/
68+
name: playwright-report-web
69+
path: apps/web/playwright-report/
7070
retention-days: 30

.gitleaks.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ useDefault = true
1010
[allowlist]
1111
description = "Allowlist for test fixtures and example files"
1212
paths = [
13-
'''apps/next/e2e/wallet-setup/.*\.(ts|js|mjs)$''',
13+
'''apps/web/e2e/wallet-setup/.*\.(ts|js|mjs)$''',
1414
'''\.env-example$''',
1515
'''\.env\.example$''',
1616
'''\.env\.test\.example$''',
1717
'''\.env-sample$''',
18-
'''^apps/next/\.env\.local\.example$''',
18+
'''^apps/web/\.env\.local\.example$''',
1919
'''\.env\.sample$''',
2020
'''\.env\.schema$''',
2121
'''\.env\.test$''',
@@ -28,7 +28,7 @@ paths = [
2828
'''fixtures/''',
2929
'''examples/''',
3030
'''docs/''',
31-
'''apps/fastify/scripts/generate-openapi\.ts$''',
31+
'''apps/api/scripts/generate-openapi\.ts$''',
3232
'''scripts/run-qa\.mjs$''',
3333
]
3434

README.md

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)