Skip to content

feat: add preset previews via vite-plus-inspector#29

Merged
k35o merged 2 commits into
mainfrom
feat/vite-plus-inspector
Jun 17, 2026
Merged

feat: add preset previews via vite-plus-inspector#29
k35o merged 2 commits into
mainfrom
feat/vite-plus-inspector

Conversation

@k35o

@k35o k35o commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Add previews/<preset>/vite.config.ts for each lint preset (base/typescript/react/nextjs/backend/test/tailwind) and pnpm preview:<preset> scripts to view each preset's effective rules with vite-plus-inspector (local vp-inspect bin, no npx). Dev tooling only — not published; empty changeset. Previews are excluded from lint/fmt.

k35o added 2 commits June 17, 2026 11:48
Build each lint preset's effective rules into a self-contained static site
and deploy it to a per-PR Cloudflare Pages branch, with a sticky PR comment
linking each preset's preview.

- scripts/build-previews.mjs: run the local vp-inspect per preset plus an
  index.html landing page (no npx/pnpx; only node_modules/.bin binaries)
- .github/workflows/preview.yml: pull_request trigger, minimal permissions,
  pnpm exec wrangler; the deploy step exits 0 gracefully when the token is
  absent so the workflow never fails on forks or before secret setup
- .github/scripts/preview-comment.mjs: sticky comment with the preview links
- add wrangler devDep (sharp/workerd build scripts disabled; Pages deploy is
  an API upload only)
- ignore dist-preview everywhere and scripts/.github scripts in typeAware lint
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Preset previews

各 lint プリセットの effective ルールをブラウザで確認できます → 一覧を開く

preset preview
backend backend.html
base base.html
nextjs nextjs.html
react react.html
tailwind tailwind.html
test test.html
typescript typescript.html

このPRのブランチに対応する最新のプレビューです。push のたびに更新されます。

@k35o k35o merged commit 8601590 into main Jun 17, 2026
4 checks passed
@k35o k35o deleted the feat/vite-plus-inspector branch June 17, 2026 04:50
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