Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

generate-fixtures round trip and new fixture builder API (api-components-bundle #321)

クローズ 初心者向け
#97 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php
領域
documentation

調査の方向性

issue で説明されている fixtures/scaffold のドキュメントページと silverback:api-components:generate-fixtures コマンドから始めます。CwaFixtureBuilder の 4 つのメソッド、リダイレクト、route に依存するコールバック、および purge-and-reload の前に live site をキャプチャする方法をドキュメント化します。完了条件は、ドキュメント化された API とワークフローが、一覧にある fixture の動作をカバーしていることです。

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

説明

documentation

Source: components-web-app/api-components-bundle#321, PR components-web-app/api-components-bundle#322.

silverback:api-components:generate-fixtures now writes a scaffold that reloads as the same site after a purge. It carries:

  • published state and drafts
  • uploaded files, copied to assets/ next to the scaffold
  • component-owned groups and groups shared through locationReference
  • relations (e.g. a navigation link's route), dates, and inherited and non-public fields
  • meta descriptions, scheduled or draft routes (liveAt) and redirects

The command lists anything it cannot reproduce.

New CwaFixtureBuilder API:

  • allow: on page groups
  • liveAt(?DateTimeImmutable) on page and page data builders
  • $cwa->redirect('/old', to: 'routeName')
  • $cwa->afterRoutes(fn (CwaFixtureBuilder $cwa) => ...), which runs once routes exist and before positions are created. Use it for anything that references a route.

Docs impact: the fixtures / scaffold pages should document the four builder methods and how to capture a live site with generate-fixtures before a purge-and-reload.

主要言語
Vue
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

components-web-app/docs のほかの issue

components-web-app/docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

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

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