From 649af715e28a48d5cf8add304b175a35c1331981 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 3 Apr 2026 14:51:14 +0800 Subject: [PATCH] docs: add workspace guardrails and submodule workflow --- docs/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/index.md b/docs/index.md index 2853f85..9311c09 100644 --- a/docs/index.md +++ b/docs/index.md @@ -35,6 +35,17 @@ - 後端子模組:[backend](../backend)(submodule: `../member-backend`) - 前端子模組:[frontend](../frontend)(submodule: `../member-frontend`) +## 開發工作目錄(防呆) +- 只在 `member-platform` 內開發與提交。 +- 後端只改 `member-platform/backend`。 +- 前端只改 `member-platform/frontend`。 +- 根目錄外的 `member-backend` / `member-frontend` 若有另一份 clone,視為非主要工作副本,避免混用。 + +## 提交順序(固定) +1. 先在 `member-platform/backend` 或 `member-platform/frontend` 各自 commit / push。 +2. 再回 `member-platform` 根目錄,提交子模組版本指標變更(submodule pointer)並 push。 +3. 部署端只需要更新 `member-platform`,再執行 `git submodule update --init --recursive`。 + ## 文件邊界 - 本輪只保留可開發、可交辦、可驗收文件。 - 最終規格白皮書延後到專案完成後再產出。