Write handover snapshots under docs and ignore worktrees
This commit is contained in:
+1
-1
@@ -6,6 +6,6 @@ From the repository root, run:
|
||||
python3 scripts/create_snapshot.py
|
||||
```
|
||||
|
||||
The script writes a timestamped ZIP into `snapshots/`. It includes the application source, `AGENTS.md`, `docs/`, and `scripts/`, including safe untracked files. It omits Git metadata, task worktrees, dependency directories, local environment files, local databases, shared files, caches, generated builds, prior snapshots, symlinks, and common key/credential files. The root `.gitignore` ignores `snapshots/`.
|
||||
The script writes a timestamped ZIP into `docs/snapshots/`. It includes the application source, `AGENTS.md`, `docs/`, and `scripts/`, including safe untracked files. It omits Git metadata, task worktrees, dependency directories, local environment files, local databases, shared files, caches, generated builds, prior snapshots, symlinks, and common key/credential files. The root `.gitignore` ignores `docs/snapshots/` and `.worktrees/`.
|
||||
|
||||
Inspect the ZIP contents before uploading it if you have added new local data or sensitive file types to the project.
|
||||
|
||||
@@ -8,7 +8,7 @@ from zipfile import ZIP_DEFLATED, ZipFile
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
OUTPUT = ROOT / "snapshots"
|
||||
OUTPUT = ROOT / "docs" / "snapshots"
|
||||
ROOT_ENTRIES = ("AGENTS.md", ".gitignore", "README.md", "api", "react", "docs", "scripts")
|
||||
EXCLUDED_DIRS = {
|
||||
".git", ".worktrees", ".venv", "venv", "node_modules", "share",
|
||||
|
||||
Reference in New Issue
Block a user