Package slug-template for npm init use #247
No reviewers
Labels
No labels
activitypub
admin
api
architecture
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
content
database
deployment
design
dev-env
diagnostics
docs
documentation
email
enhancement
feature
federation
feed
health
homepage
implementation
integration
logging
mastodon
media
navigation
npm-packages
openapi
opengraph
packages
passkeys
preview
priority:high
priority:low
priority:medium
production
proof
proxy
public-routes
public-ui
release
safety
slug-api
slug-auth
slug-core
slug-federation
slug-media
slug-template
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
webauthn
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!247
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-dce4aca3-slug-template-package"
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
@evcraddock/slug-templateas the default package-backed Slugkit site template.template/sitesource intodist/templatewith generated-site filters applied.slug initto consume the template package by default and reserve--templatefor future named/external template packages while preserving--template-dirand--template-urloverrides.@evcraddock/slug-*dependency versions and no CLI source.@evcraddock/slug-templateto the npm package release workflow choices and update docs.Verification
npm run typecheck --workspacesnpm run buildnpm test --workspace @evcraddock/slug-templatenpm test --workspace @evcraddock/slug-cli -- commands.test.tsnpm run package:pack:dry-run -- --workspace @evcraddock/slug-templatenpm run package:release -- --workspace @evcraddock/slug-template --dry-runslug initsmoke test from built CLI./scripts/pre-pr.shTask: #task-dce4aca3
Note:
template/site/src/styles/public.csshas an unrelated pre-existing local working tree change and is intentionally not included in this PR.Review summary
PR #247 packages the default Slugkit template as
@evcraddock/slug-template, updatesslug initto use the package-backed template contract by default, and leaves room for future named/external templates through--templatewhile preserving explicit--template-dirand--template-urloverrides.Acceptance criteria
@evcraddock/slug-templateexists as a workspace package —packages/slug-templateincludes package metadata, README, TS configs, public exports, build copy script, and tests.slug initconsumes the template package rather than relying only on ad hoc in-repo paths — default resolution now usesgetTemplateRoot()from@evcraddock/slug-templatewhen no explicit local/remote override is provided.@evcraddock/slug-*dependency versions — package metadata exportsGENERATED_SITE_SLUGKIT_DEPENDENCIES, and CLI replacement keeps generated manifests on published semver versions.getTemplateMetadata()exposes included Slugkit package versions, compatibility, copy filters, and placeholder rules.slug initverification succeeds — not applicable until after merge; release workflow choice is added../scripts/pre-pr.shpasses — verified locally; Forgejo CI run #356 passed.Blocking issues
None for merging this implementation PR.
Warnings
@evcraddock/slug-templateand verify post-publishslug initbehavior before closing the task.template/site/src/styles/public.csschange that is intentionally excluded from the PR.Verdict
Approved. Stop at the human merge gate.