Publish: stream build output while the gate runs

Aperta
#6 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
full-stack

Direzione di ricerca

Start with runPublish in src/lib/server/publish.ts, which runs the blog build as a gate and returns output only at the end, and find where the build command's stdout and stderr are collected. Add a streaming path (server-sent events or a polled buffer capped at the last 200 lines) and connect it to the Publish view. Done when output appears within a second, reopening the page mid-publish shows current output, and a failed build keeps its output visible.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Context

runPublish in src/lib/server/publish.ts runs the blog build as a gate and returns the output tail only when it finishes. A slow build looks like a hang.

Scope

  • Stream the build command's stdout and stderr to the Publish view while it runs, through a server-sent events endpoint or a polled log buffer.
  • Cap the buffered output (last 200 lines).

Acceptance criteria

  • Output appears within a second of being printed by the build command.
  • Leaving the page and returning during a publish shows the current output.
  • A failed build keeps its output visible after the failure.

Estimate: about 3 hours.

Lingua principale
HTML
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mrgnw/cfcms

Tutte le issue di mrgnw/cfcms

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.