Skip to content

feat: template bootstrap enhancements#5

Merged
rochecompaan merged 22 commits intomainfrom
rcompaan/template-rendering
Mar 11, 2026
Merged

feat: template bootstrap enhancements#5
rochecompaan merged 22 commits intomainfrom
rcompaan/template-rendering

Conversation

@rochecompaan
Copy link
Contributor

@rochecompaan rochecompaan commented Mar 11, 2026

This branch refactors template-starter into a clean two-stage Copier flow and fixes multiple
regressions around rendering, CI, and semantic-release setup.

What this PR changes

  • Restructures output so stage-1 generates a full starter repo, and that repo correctly contains a
    stage-2 Copier template under template/.
  • Replaces old task orchestration with Python post-copy scripts per stage:
    • template/.scaf/starter-post-copy.py.jinja (stage-1)
    • template/template/.scaf/post-copy.py.jinja (stage-2)
  • Adds stage-aware file materialization via .scaf assets:
    • root task runner files (Makefile/Taskfile.yml/justfile)
    • root semantic-release workflows
    • root semantic-release npm assets (package.json, deps files, .releaserc.json, CHANGELOG.md)
  • Fixes root vs nested file collisions (same filenames in root and template/) by moving stage-1
    root semantic files into .scaf/semantic-assets and copying them in post-copy.
  • Ensures both generated layers include expected docs/workflows:
    • root .github/workflows/template-correctness.yaml
    • nested template/.github/workflows/* including semantic and secret-scan workflows
  • Adds missing LICENSE to both stage outputs.
  • Fixes pre-commit hook installation path to use root .pre-commit-config.yaml in stage-1.
  • Tightens pre-commit YAML exclusions so only stage-1 excludes templated YAML paths.
  • Adds template/.gitignore with node_modules/ and keeps nested template/template/.gitignore
    behavior.
  • Updates CI/node handling to use lts/* and avoids repo-creation side effects during render tests.

@rochecompaan rochecompaan force-pushed the rcompaan/template-rendering branch from 417ab8e to 4d675a0 Compare March 11, 2026 10:25
@rochecompaan rochecompaan merged commit c1a1f0f into main Mar 11, 2026
2 checks passed
getscaf-release-bot bot pushed a commit that referenced this pull request Mar 11, 2026
## [1.2.0](v1.1.2...v1.2.0) (2026-03-11)

### Features

* template bootstrap enhancements ([#5](#5)) ([c1a1f0f](c1a1f0f))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant