Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .changeset/effa-sync-shared.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
"@effect-app/cli": minor
---

Add `effa sync` / `effa sync-diff` / `effa sync-push` subcommands for syncing content (architecture docs, e2e helpers, ts-plugins) from `effect-app/shared` into consuming projects per a project-side `.shared.json` lockfile.

- `effa sync` β€” clone/checkout the shared repo at the pinned ref into `~/.cache/effa/shared/<slug>`, then copy the artifact map's files into the project (honoring `exclude`).
- `effa sync-diff` β€” sha256 compare each tracked file against the cache copy; reports `M` (modified locally), `D` (missing from project), `E` (excluded).
- `effa sync-push [--pr] [-m msg] [--branch name]` β€” branch in the cache off the pinned ref, copy modified project files in, commit, push. Optional `--pr` opens a PR via `gh pr create`.

Lockfile shape:

```json
{
"repo": "github.com/effect-app/shared",
"ref": "<sha>",
"artifacts": { "<src-in-shared>": "<dest-in-project>" },
"exclude": ["<src-path>"]
}
```
4 changes: 4 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
"./sync-effect-subtree": {
"types": "./dist/sync-effect-subtree.d.ts",
"default": "./dist/sync-effect-subtree.js"
},
"./sync-shared": {
"types": "./dist/sync-shared.d.ts",
"default": "./dist/sync-shared.js"
}
},
"scripts": {
Expand Down
Loading