docs: use pnpm instead of npm in dev commands

This commit is contained in:
Woody 2026-05-14 20:22:33 +08:00
parent 5832a854c5
commit 2501a2c3c0
2 changed files with 4 additions and 4 deletions

View File

@ -163,7 +163,7 @@ Every sub-phase follows **test-driven delivery**:
**Enforcement**: **Enforcement**:
- Each Implementation Task in a sub-phase plan must list its test file(s) - Each Implementation Task in a sub-phase plan must list its test file(s)
- Tests must be in the `backend/app/test/` or `frontend/src/test/` directory - Tests must be in the `backend/app/test/` or `frontend/src/test/` directory
- Pre-commit: `pytest` must pass for backend, `npm test` for frontend - Pre-commit: `pytest` must pass for backend, `pnpm test` for frontend
### Sub-Phase Plan Template ### Sub-Phase Plan Template
@ -219,7 +219,7 @@ def test_query_with_real_llm():
```bash ```bash
# Dev # Dev
backend: uvicorn app.main:app --reload --port 8000 backend: uvicorn app.main:app --reload --port 8000
frontend: npm run dev frontend: pnpm run dev
# Integration tests (TestClient, real DB, only external APIs mocked) # Integration tests (TestClient, real DB, only external APIs mocked)
backend: cd backend && pytest app/test/test_phase*.py -v backend: cd backend && pytest app/test/test_phase*.py -v

View File

@ -13,8 +13,8 @@ uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
# Frontend # Frontend
cd frontend cd frontend
npm install pnpm install
npm run dev pnpm run dev
``` ```
Backend → `http://localhost:8000` | Frontend → `http://localhost:5173` Backend → `http://localhost:8000` | Frontend → `http://localhost:5173`