Skip to content

chore: 未使用のテンプレ種別(static-html・base-overlay)とhtml stackを削除する - #656

Merged
ddryo merged 2 commits into
devfrom
chore/remove-static-html-template
Sep 30, 2026
Merged

ddryo merged 2 commits into
devfrom
chore/remove-static-html-template

Conversation

@ddryo

@ddryo ddryo commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

概要

使われていないテンプレ種別を2つ削除します。

HTML版を見送る理由

  • Astroの出力はminify済み(1ページ約50KBが2〜25行)で、手で編集する配布物に向かない。
  • JSが<script type="module">のため、file://で開くとブラウザがブロックして動かない。
  • CLIはgigetでGitHubから取得するため、生成物をコミットし、sourceとのずれをCIで検査し続ける必要がある。

HTMLが欲しい場合は、Astro版をnpm run buildしてdist/を使えば足ります。

base-overlayを消す理由

#372では、variant間で構造の違い(独自のkeyframesやclass prefix)が大きく、共通baseにする利点が薄いとしてLPへの採用を見送りました。残る想定用途は未作成のwebカテゴリだけですが、業種ごとに構造が違う点は同じです。今後もsingle-project-variant型に倣います。

変更内容

  • templates/manifest.ts: StaticHtmlTemplateDef・BaseOverlayTemplateDefとStackの'html'を削除
  • packages/lism-cli: 両型の分岐(取得・マージ・package名の書き換え・HTML向け案内)、stackの表示名html、専用メッセージ2件、テスト3件を削除
  • apps/site/src/config/templates.ts: stackのhtmlと、sourcePathを持たない種別向けの例外処理を削除
  • scripts/build-previews.mjs: stackのhtmlと、非対応kindのスキップ処理を削除
  • documents/cli-guide.md: 両型の規約・予定の記述を削除
  • docs/decisions.md: 2つの決定を追記

確認

  • pnpm --filter lism-cli test: 110件成功
  • nr typecheck: エラー0件
  • nr lint: エラー0件(既存の警告のみ)

Refs #375

🤖 Generated with Claude Code

https://claude.ai/code/session_01DWnryT8C2ehisFTnFkKjfr

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: a35c2f5d-f0bb-4a59-9ba2-e11275b3a141

📥 Commits

Reviewing files that changed from the base of the PR and between cd06232 and 295cb87.

📒 Files selected for processing (8)
  • apps/site/src/config/templates.ts
  • docs/decisions.md
  • documents/cli-guide.md
  • packages/lism-cli/src/commands/create.test.ts
  • packages/lism-cli/src/commands/create.ts
  • packages/lism-cli/src/messages.ts
  • scripts/build-previews.mjs
  • templates/manifest.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ddryo ddryo changed the title chore: LPテンプレのHTML版配布を見送り、static-html型とhtml stackを削除する chore: 未使用のテンプレ種別(static-html・base-overlay)とhtml stackを削除する Sep 30, 2026

@ddryo ddryo left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review (by GPT-6)

Review baseline: 295cb87

Summary

未使用のstatic-html・base-overlay型とhtml stackの削除について、全8ファイルの差分と関連処理を確認しました。既存テンプレの登録、CLIの取得・言語overlay・variant抽出、サイトのサムネイル解決、プレビューのビルド単位との整合性を確認し、Blocking・Advisoryともに指摘はありません。

Validation

  • packages/lism-cliでnr test src/commands/create.test.tsを実行し、26テスト成功。
  • packages/lism-cliでnr typecheckを実行し、成功。
  • 削除した型・メッセージの残存参照を検索し、実装側に削除漏れがないことを確認。
  • サイト・プレビューの実ビルドは未実行。

Positives

未使用種別の削除に範囲を絞り、既存の言語overlayとvariant抽出を維持しています。型定義・実装・専用テスト・文言・運用文書が併せて整理されています。

@ddryo
ddryo merged commit 1d56347 into dev Sep 30, 2026
7 checks passed
@ddryo
ddryo deleted the chore/remove-static-html-template branch September 30, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant