feat: add preset previews via vite-plus-inspector#29
Merged
Conversation
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
Contributor
🔍 Preset previews各 lint プリセットの effective ルールをブラウザで確認できます → 一覧を開く
このPRのブランチに対応する最新のプレビューです。push のたびに更新されます。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
previews/<preset>/vite.config.tsfor each lint preset (base/typescript/react/nextjs/backend/test/tailwind) andpnpm preview:<preset>scripts to view each preset's effective rules with vite-plus-inspector (localvp-inspectbin, no npx). Dev tooling only — not published; empty changeset. Previews are excluded from lint/fmt.