Publish: stream build output while the gate runs
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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mrgnw/cfcms
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
sipeed/NanoKVM-Go#36 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
paperclipai/paperclip#21503 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] List: the reorder hint's Move up stays enabled on the first row, and Move down on the lastAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
-
.Needs Triage .Team/Graphy Priority:P3 Type:Bug
Difficoltà 2/5 1-2 giorni Idoneità per principianti 65/100
metabase/metabase#87126 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NangoHQ/nango#8304 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno