Skip to content

Migrate toolchain to Vite+#11

Merged
devi4nt merged 2 commits into
mainfrom
migrate-to-vite-plus
Mar 30, 2026
Merged

Migrate toolchain to Vite+#11
devi4nt merged 2 commits into
mainfrom
migrate-to-vite-plus

Conversation

@devi4nt
Copy link
Copy Markdown
Owner

@devi4nt devi4nt commented Mar 30, 2026

Summary

  • Replace ESLint, Prettier, standalone Vite & Vitest with the unified Vite+ CLI (vp)
  • Consolidate all lint (Oxlint), format (Oxfmt), test (Vitest), and build config into a single vite.config.ts
  • Add v8 test coverage reporting and improve test coverage (utils now at 100%, stores at 87%)
  • Remove 10 dev dependencies (eslint, prettier, vue-tsc, npm-run-all2, etc.) and 5 config files

Changes

  • Linting: ESLint 8 → Oxlint (via vp lint), config in vite.config.ts lint block
  • Formatting: Prettier → Oxfmt (via vp fmt), existing Prettier settings preserved in fmt block
  • Testing: Standalone Vitest → vp test, imports changed from vitest to vite-plus/test
  • Building: vite build + vue-tscvp build
  • Coverage: Added @vitest/coverage-v8 with pnpm test:coverage script
  • New tests: time.ts, colours.ts, teams store swap(), Alert timeout behaviour
  • Lint fixes: String.startsWith() over regex, await on async store.add() calls

Test plan

  • vp check passes (format + lint + type-check)
  • vp test — all 29 tests pass
  • vp test run --coverage — coverage report generates correctly
  • vp build — production build succeeds
  • vp dev — dev server starts and app loads

🤖 Generated with Claude Code

Replace separate ESLint, Prettier, Vitest, and Vite tooling with the
unified Vite+ CLI (vp). Consolidate all lint, format, test, and build
config into vite.config.ts. Add v8 test coverage and improve test
coverage for teams store, Alert component, and utils.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Mar 30, 2026

Deploying mythic-plus-team-randomiser with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4b21b4b
Status: ✅  Deploy successful!
Preview URL: https://e73443e7.mythic-plus-team-randomiser.pages.dev
Branch Preview URL: https://migrate-to-vite-plus.mythic-plus-team-randomiser.pages.dev

View logs

Use pnpm/action-setup@v4 to read packageManager from package.json
instead of hardcoding pnpm 9. Bump Node to 22 to match .node-version
and satisfy vite-plus native binding requirements.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@devi4nt devi4nt merged commit 328bbe9 into main Mar 30, 2026
2 checks passed
@devi4nt devi4nt deleted the migrate-to-vite-plus branch April 29, 2026 20:26
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