thread-master/docs/product/haixun-console/tasks/T001-scaffold-apps-web.md

1.1 KiB
Raw Blame History

T001 — Scaffold apps/web (Vite React TS)

Status: done
Milestone: M0
Est. change: ~120 lines
Completed: 2026-07-09

Goal

repo 根下有可啟動的 apps/webVite + React + TypeScript

Depends on

Inputs

  • Spec §5.2 路由前綴、§1 落點 apps/web
  • README.md / AGENTS.md

Outputs

程式變更(預期路徑)

路徑 動作 說明
apps/web/package.json add scripts: dev, build, preview
apps/web/vite.config.ts add React plugin
apps/web/tsconfig*.json add strict TS
apps/web/index.html add root mount
apps/web/src/main.tsx add render App
apps/web/src/App.tsx add hello 占位
README.md edit 補充 cd apps/web && npm run dev

行為變更

  • npm run dev 可開本機頁面

Out of scope

  • 路由、設計系統、mock 資料
  • 後端

Acceptance

  • cd apps/web && npm install && npm run build 成功
  • npm run dev 可開啟(手動)
  • 不依賴 old/
cd apps/web && npm install && npm run build