joerglohrerde/publish
Jörg Lohrer 0c6fdd15c3 publish(task 21): date-string-coercion + force-all migration erfolgreich
validatePost akzeptiert jetzt auch string-dates im YYYY-MM-DD- oder
ISO-8601-format und coerced sie in ein Date-objekt in-place. vorher
schlug die validation für 13 von 18 altposts fehl, weil deren yaml
`date: "2023-02-26"` quoted war (hugo-konvention) und der yaml-parser
strings statt Date-instanzen liefert.

migration durchgelaufen (log in docs/publish-logs/): 18/18 success,
91 bilder auf beiden blossom-servern, 5 write-relays — bis auf
relay.damus.io, der bei 6 posts nicht auf OK antwortet (üblich bei
damus, rate-limiting). alle 7 multi-relay-posts haben weiter mindestens
4 acks (über MIN_RELAY_ACKS=2).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 06:48:27 +02:00
..
src publish(task 21): date-string-coercion + force-all migration erfolgreich 2026-04-18 06:48:27 +02:00
tests publish(task 21): date-string-coercion + force-all migration erfolgreich 2026-04-18 06:48:27 +02:00
.env.example publish(task 1): deno-grundgerüst (deno.jsonc, .env.example, readme) 2026-04-18 05:20:19 +02:00
.gitignore publish(tasks 19+20): signer-stabilisierung für wiederholte runs 2026-04-18 06:42:28 +02:00
README.md publish(task 1): deno-grundgerüst (deno.jsonc, .env.example, readme) 2026-04-18 05:20:19 +02:00
deno.jsonc publish(task 11): image-collector (ignoriert hugo-derivate) 2026-04-18 05:31:32 +02:00

README.md

publish — Nostr-Publish-Pipeline

Markdown-Posts aus einem Hugo-ähnlichen Content-Ordner zu kind:30023-Events, Bilder zu Blossom, Signatur via NIP-46-Bunker.

Blaupause für Nostr-Repos: keinerlei Projekt-Konstanten im Code, alles über Env-Variablen konfigurierbar.

Setup

  1. cp .env.example .env und Werte eintragen.
  2. Oder: .env.local im Eltern-Ordner pflegen und deno.jsonc anpassen (siehe --env-file=../.env.local-Tasks).
  3. deno task check — verifiziert Bunker, Relay-Liste, Blossom-Server.

Befehle

  • deno task publish — Git-Diff-Modus: publisht nur geänderte Posts.
  • deno task publish --force-all — alle Posts (Migration / Reimport).
  • deno task publish --post <slug> — nur ein Post.
  • deno task publish --dry-run — zeigt, was publiziert würde, ohne Uploads.
  • deno task validate-post content/posts/<ordner>/index.md — Frontmatter-Check.
  • deno task test — Tests.

Struktur

  • src/core/ — Library (Frontmatter, Markdown, Events, Signer, Relays, Blossom).
  • src/subcommands/ — CLI-Befehle.
  • src/cli.ts — Entrypoint, Subcommand-Dispatcher.
  • tests/ — Unit- und Integration-Tests.
  • .github/workflows/publish.yml — CI-Workflow.