Publish: stream build output while the gate runs

オープン
#6 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
full-stack

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
HTML
スター
0
フォーク
0
平均マージ
1分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mrgnw/cfcms のほかの issue

mrgnw/cfcms の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。