Skip to content

feat: smalruby3-gui 廃止対応・README更新・smalruby3-editor スプライト追加修正 #179

@takaokouji

Description

@takaokouji

Goal

3つの独立した作業を実施する:

  1. smalruby3-gui リポジトリ: gh-pages ブランチを直接書き換えてリダイレクトページを設置し、CI/CD の GitHub Pages デプロイを無効化する
  2. smalruby3-gui / scratch-vm: README.md を obsolete 旨に更新する
  3. smalruby3-editor: develop ブランチデプロイ時の publicPath 対応を追加し、スプライト追加バグを修正する

Affected Files

smalruby/smalruby3-gui リポジトリ

  • gh-pages ブランチ(直接変更)— ルートと全サブディレクトリのコンテンツをリダイレクトページに差し替え
  • .github/workflows/ci-cd.yml — GitHub Pages デプロイステップをすべて削除
  • README.md — obsolete 旨の記載追加

smalruby/scratch-vm リポジトリ

  • README.md — obsolete 旨の記載追加

smalruby/smalruby3-editor リポジトリ

  • packages/scratch-gui/webpack.config.jsbuildConfigpublicPath: ''process.env.PUBLIC_PATH || '' に変更
  • .github/workflows/*.yml — develop ブランチデプロイ前に PUBLIC_PATH=/smalruby3-editor/postbuild.mjs を実行するステップを追加

Implementation Steps

  • Phase 1: smalruby3-gui — gh-pages ブランチ直接変更

    • gh-pages ブランチのルート全ファイル・サブディレクトリを削除(.nojekyll は残す)
    • index.html404.html にリダイレクトページを作成(meta refresh + JS redirect で https://smalruby.app へ)
    • commit & push: feat: replace all content with redirect to smalruby.app
  • Phase 2: smalruby3-gui — CI/CD デプロイ無効化

    • .github/workflows/ci-cd.yml の GitHub Pages デプロイステップを全削除
    • commit & push: ci: disable GitHub Pages deployment
    • PR 作成 → develop
  • Phase 3: README.md 更新(smalruby3-gui / scratch-vm)

    • smalruby3-gui/README.md の冒頭に非推奨通知と https://github.com/smalruby/smalruby3-editor への移行案内を追加
    • scratch-vm/README.md の冒頭に同様の通知を追加
    • commit & push: docs: mark as obsolete and add migration notice to smalruby3-editor
    • smalruby3-gui は Phase 2 の PR に追加、scratch-vm は別途 PR
  • Phase 4: smalruby3-editor — スプライト追加バグ修正

    • packages/scratch-gui/webpack.config.jsbuildConfigpublicPath: ''process.env.PUBLIC_PATH || ''
    • .github/workflows/*.yml に develop ブランチデプロイ前の postbuild.mjs 実行ステップを追加(PUBLIC_PATH=/smalruby3-editor/
    • commit & push: fix: resolve sprite addition issue on smalruby3-editor GitHub Pages
    • PR 作成 → develop

Test Plan

確認項目 タイミング 方法
https://smalruby.jp/smalruby3-guihttps://smalruby.app リダイレクト Phase 1 完了後 ブラウザで確認
https://smalruby.jp/smalruby3-gui/any/pathhttps://smalruby.app Phase 1 完了後 ブラウザで確認(404.html のフォールバック)
develop マージ後も gh-pages が上書きされないこと Phase 2 マージ後 CI ログ確認
https://smalruby.jp/smalruby3-editor でスプライト追加が動作する Phase 4 マージ後 ブラウザで確認

Risks & Open Questions

  1. Phase 1 の効果確認タイミング: gh-pages への push 後すぐに GitHub Pages が反映されるが、CDN キャッシュで数分かかる場合がある
  2. Phase 4 の publicPath 変更: process.env.PUBLIC_PATH || '' に変更した場合、ローカル開発(npm start)は PUBLIC_PATH 未設定のため '' のまま動作し影響なし。dist ビルドは baseConfigpublicPath: 'auto' を継承するため影響なし

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions