Publish: stream build output while the gate runs

Abierto
#6 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
full-stack

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
HTML
Estrellas
0
Forks
0
Merge medio
1 min
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de mrgnw/cfcms

Todos los issues de mrgnw/cfcms

Issues similares

Más issues de Web Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.