Extract slug-media npm package #243
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!243
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-4f6fb4a9-slug-media-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-mediaworkspace package with S3-compatible storage, media config parsing, upload validation, object-key/public-URL helpers, and media API error mapping.@evcraddock/slug-media@0.1.0.@evcraddock/slug-mediato the Forgejo npm package release workflow choices.Verification
npm run build --workspacesnpm run typecheck --workspacesnpm test --workspace @evcraddock/slug-medianpm test --workspace @slugkit/template-site -- src/media src/api/__tests__/media.test.tsnpm test --workspace @evcraddock/slug-cli -- commands.test.tsnpm run package:pack:dry-run -- --workspace @evcraddock/slug-medianpm run package:release -- --workspace @evcraddock/slug-media --dry-run./scripts/pre-pr.shTask: #task-4f6fb4a9
ff057b2b84c263ff2ab0Review summary
PR #243 extracts reusable media behavior into
@evcraddock/slug-mediawhile keeping generated-site customization points in local template media modules. The package release workflow now includes@evcraddock/slug-media, so the package can be published from Forgejo CI after this PR lands onmain.Acceptance criteria
@evcraddock/slug-mediaexists as a workspace package —packages/slug-mediaincludes package metadata, TS configs, README, source exports, and tests.@evcraddock/slug-mediathrough the local workspace link during monorepo development —template/site/package.jsondeclares@evcraddock/slug-media: 0.1.0, which npm links locally in the workspace.@evcraddock/slug-media@0.1.0.template/site/src/media/README.mddocuments config, storage, persistence, and API-error customization points../scripts/pre-pr.shpasses — verified locally and Forgejo CI run #338 passed.Blocking issues
None for merging this implementation PR.
Warnings
@evcraddock/slug-mediaand verify install/import before closing the task.Verdict
Approved. Stop at the human merge gate.