fix: exclude template-repo-only files from generated projects - #3
Merged
Conversation
docs/, README-ja.md, CLAUDE.md, and .claude/ belong to the template repository itself and were leaking into generated projects. Add them to copier's _exclude list. Note: the plain README.md and .gitignore cannot be excluded because _exclude patterns match paths after the .jinja suffix is stripped, so excluding them would also drop the rendered README.md.jinja / .gitignore.jinja outputs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/,README-ja.md,CLAUDE.md, and.claude/to copier's_excludelist so template-repository metadata no longer leaks into generated projects.Why
Running
copier copycurrently copies the template repo's own development docs (docs/superpowers/...), Japanese README, and Claude Code config into every generated project.Notes
The plain
README.md/.gitignoreare intentionally NOT excluded: copier matches_excludepatterns against paths after stripping the.jinjasuffix, so excluding them would also remove the rendered outputs ofREADME.md.jinja/.gitignore.jinja(verified — it breaks the post-generationuv sync).Test plan
uvx copier copy --trust --defaults . /tmp/test-projectsucceeds (including post-genuv syncand quality checks)docs/,README-ja.md,CLAUDE.md,.claude/README.mdis the renderedREADME.md.jinjaoutput🤖 Generated with Claude Code