Multi-Repo Workflow¶
This workflow supports a gradual move from the Euxis monorepo to multiple repos without disrupting daily development.
Goals¶
Keep local development fast with side-by-side repos.
Preserve safe defaults while repo split work is in flight.
Make path-based dependencies explicit during development.
Local Layout¶
Recommended local layout (one folder per repo):
~/dev/euxis/
euxis-core/
euxis-cli/
euxis-gateway/
euxis-adapters/
euxis-security/
euxis-metrics/
data/
euxis-web/
libs/
apps/
Setup¶
Copy
config/multi-repo.example.jsontoconfig/multi-repo.jsonand fill in repo URLs.Run:
euxis-ops/setup/validate-multi-repo-config.sh
euxis-ops/setup/multi-repo-dev.sh
This creates the layout above and clones each repo into it. The validator enforces a strict allowlist of expected repo names.
Path Dependencies (local dev)¶
Use path-based dependencies while iterating across repos:
Python:
pip install -e ../euxis-corefrom within a repo that depends on core.Node: use workspace linking (pnpm or npm workspaces) if present in the repo; otherwise
npm linkto local packages.Shell: keep
core/liband CLI repos adjacent and reference via relative paths.
Worktree Alternative¶
If you prefer git worktrees:
euxis-ops/setup/multi-repo-dev.sh --worktree --branch main
Guardrails¶
Keep the monorepo branch intact until split repos are stable.
Treat
euxis-coreas the source of shared contracts.Add contract tests before moving tightly-coupled modules.