feat: download versioned templates for slug init #128
No reviewers
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!128
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-e3121ddd-remote-template-init"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Make installed
slug initwork without a repo-localtemplate/siteby downloading a versioned template asset from Forgejo releases, while keeping local template behavior for repo development.Task
Task: #task-e3121ddd
Changes
slug init --helpwith init-specific usage and template source options.--template-urland--template-dirtoslug init.scripts/package-site-template.mjsto produceslugkit-site-template-v<version>.tgzfromtemplate/sitewhile excluding runtime artifacts.Testing
npm run test --workspace @evcraddock/slug -- commands.test.ts template-package-script.test.tsnode scripts/package-site-template.mjs 0.1.2 <tmp-dir>npm run lintnpm run buildnpm test./scripts/pre-pr.shChecklist
./scripts/pre-pr.shpassesReview summary
Approved. The PR implements versioned remote template downloads for installed
slug init, preserves repo-local template initialization, and updates release automation to attach a reproducible template tarball asset.Acceptance criteria
slug init ./site --name site --site-title "Site"works when installed and no repo-localtemplate/siteis available — covered by default remote-template test withtemplateSiteDirectory: null, mocked fetch, and matching extracted template copy.template/siteand uploads/replacesslugkit-site-template-v<version>.tgzon the Forgejo release.v<version>/slugkit-site-template-v<version>.tgzrelease asset path.template/sitewithout network — local finder is preserved ahead of default remote download; explicit--template-dircoverage added.Quality checks
Blocking issues
None.
Warnings
None.
Verdict
Approved. Stop at the human merge approval gate.