You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The current project records template source in `template.lock`.
29
+
30
+
### Editing template-controlled code in a project
31
+
If you need to modify controlled areas for a project, prefer sending changes back to the template and then updating via the script. A non-blocking pre-commit hook will remind you when you modify controlled paths.
32
+
33
+
### Template blocks in files
34
+
For files like `src/server.ts`, only the code inside the `// <template:...>` blocks is intended to be overwritten by template updates. Avoid custom edits within these blocks.
- Apply a specific tag with backup: `APPLY=1 bash scripts/update-from-template.sh vX.Y.Z`
189
+
- The template source and version are recorded in `template.lock`.
190
+
- Install a non-blocking pre-commit reminder:
191
+
```bash
192
+
bash scripts/install-git-hooks.sh
193
+
```
194
+
- Controlled areas (prefer updating via template): `.github/`, `scripts/`, `src/framework/`, template-marked blocks in `src/server.ts`, `tsconfig.json`, `vercel.json`, and docs listed in `MIGRATION.md`.
0 commit comments