Skip to content

chore: ビルド・テスト・リリース環境の最新化と生成物の Git 管理除外 - #41

Merged
uidev1116 merged 2 commits into
masterfrom
chore/modernize-tooling
Oct 27, 2026
Merged

uidev1116 merged 2 commits into
masterfrom
chore/modernize-tooling

Conversation

@uidev1116

Copy link
Copy Markdown
Contributor

概要

SmartPhoto / a-table.js と同じ構成に揃えました。

  • lib/ js/ を Git 管理から外し、prepack 時のみ生成
  • browserify/babel/uglify/np を tsup に置き換え (CJS / ESM / ブラウザ向け IIFE)
  • ESLint 10 (flat config) + @stylistic に移行
  • vitest + jsdom のテスト追加、カバレッジ 90% 未満で失敗 (現状 100%)
  • Dependabot (週次) と minor/patch の自動マージ、Node CI を追加
  • v*.*.* タグ push で npm Trusted Publishing (OIDC) により公開
  • checkScrollableDir が element.scrollWidth を見るよう修正 (Fix suggestive shadows for text-only scroll containers #40 と同じ修正。テキストのみのコンテナで方向クラスが付かない問題)
  • 依存を最新化し、未使用の array.prototype.find delegate を削除

注意

  • lib/util.js は lib/index.js に統合されます
  • 公開前に npmjs.com で Trusted Publisher (appleple/scroll-hint の publish.yml) の登録が必要です

検証

npm run prepack (lint / テスト / ビルド) がローカルで通ることを確認済み。

🤖 Generated with Claude Code

lib/ と js/ はソースから再生成できる成果物で、コミットされていると
ソース変更のたびに差分が混ざり、古い成果物がそのまま残る事故が起きる
(実際に js/ だけ src より古い状態だった)。SmartPhoto / a-table.js と
同じ構成に揃え、成果物は prepack 時にのみ生成する。

- browserify/babel/uglify/np を tsup に置き換え (CJS/ESM/IIFE を出力)
- ESLint 10 flat config + @Stylistic に移行
- vitest + jsdom のテストを追加し、カバレッジ 90% 未満で失敗させる
- Dependabot と minor/patch の自動マージ、Node CI を追加
- タグ push で npm Trusted Publishing (OIDC) により公開
- checkScrollableDir が先頭の子要素ではなく scrollWidth を見るよう修正
  (テキストのみのコンテナで方向クラスが付かない問題)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-27T09:19:04.333338Z
We couldn’t complete this review. Comment @codex review to try again.
856ba10 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

SmartPhoto / a-table.js と表記を揃えるため。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@uidev1116
uidev1116 merged commit 6f4adfc into master Oct 27, 2026
1 check passed
@uidev1116
uidev1116 deleted the chore/modernize-tooling branch October 27, 2026 09:23
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