52 lines
1.5 KiB
Markdown
52 lines
1.5 KiB
Markdown
## Project
|
|
This repository contains a Next.js web application.
|
|
|
|
## Portable paths
|
|
|
|
Resolve paths from this `apps/fo/AGENTS.md` file, not from a developer-specific drive or the current shell directory.
|
|
|
|
- `FE_APP_ROOT`: directory containing this file (`apps/fo`)
|
|
- `FE_REPO_ROOT`: `FE_APP_ROOT/../..` (`frontend`)
|
|
- `WORKSPACE_ROOT`: `FE_REPO_ROOT/..`
|
|
- `COMMON_ROOT_AGENTS`: `WORKSPACE_ROOT/AGENTS.md`
|
|
- `BE_REPO_ROOT`: `WORKSPACE_ROOT/IIPBS` (Backend repository root)
|
|
- `BE_SERVICE_ROOT`: `BE_REPO_ROOT/sewerage-service`
|
|
|
|
Use an explicitly supplied repository path when the repositories are installed under different parent directories. Verify a calculated path exists before using it.
|
|
|
|
Main technologies:
|
|
- Next.js
|
|
- TypeScript
|
|
- pnpm workspace
|
|
- turborepo
|
|
|
|
이 저장소는 pnpm workspace + Turborepo 기반 monorepo이다.
|
|
|
|
- 워크스페이스 범위는 `apps/*`, `apps/common/*`, `packages/*`, `packages/common/*`
|
|
- 루트 스크립트는 `turbo run build`, `turbo run dev` 를 사용한다
|
|
- `build` 작업은 의존 패키지의 `build` 를 먼저 수행한다 (`dependsOn: ["^build"]`)
|
|
- `dev` 는 캐시하지 않는 지속 실행 작업이다
|
|
- 변경 범위만 선택 실행할 수 있으므로, 전체 빌드보다 `--filter` 사용을 우선한다
|
|
|
|
## Encoding
|
|
- UTF-8
|
|
- 한글이 깨지지 않도록 주의할 것
|
|
|
|
## 주석 comment
|
|
- 한글 주석을 삭제하지 말 것
|
|
|
|
## Monorepo structure
|
|
apps/
|
|
_template
|
|
as
|
|
cm
|
|
cs
|
|
dc
|
|
dm
|
|
dm_new
|
|
fo
|
|
sn
|
|
st
|
|
wr
|
|
|