Skip to content

chore: migrate tooling to Vite+ (vp) - #1

Merged
shakedex merged 12 commits into
masterfrom
chore/vite-plus-migration
Jul 21, 2026
Merged

chore: migrate tooling to Vite+ (vp)#1
shakedex merged 12 commits into
masterfrom
chore/vite-plus-migration

Conversation

@shakedex

Copy link
Copy Markdown
Owner

Consolidates the toolchain onto Vite+ 0.2.5 (beta, pinned exact) while keeping bun as package manager and release-script runtime.

What moved to vp

  • Build/dev: apps/web on vite-plus (lazyPlugins wrapper; vite aliased to @voidzero-dev/vite-plus-core via bun catalog + override)
  • Tests: 28 package test files bun:test → Vitest (vp test); counts match baseline exactly (191 tests). tools/release.test.ts deliberately stays on bun (test:tools)
  • Lint/format: Biome → Oxlint+Oxfmt (vp check), style and exclusions mirrored; editor handed to Oxc extension
  • Type-check: tsgo enabled in vp check (seeded-error parity vs tsc confirmed); tsc stays the authoritative CI gate
  • Task running: vp run -r --cache for build/typecheck (Astro build + router codegen replay from cache)
  • CI: setup-vp + Vite Task cache; bun kept for tools tests

What stayed on bun

Package management (bun.lock, packageManager pin 1.3.14), tools/release.ts (Bun-native), bun test tools.

Deviations from vp defaults

  • Git hooks removed (prepare: vp config --no-hooks, no staged block) — rejected in scoping
  • apps/docs left untouched (Astro owns its tooling; excluded from lint/fmt as under Biome)

Known regression

No import sorting in vite-plus 0.2.x (Biome organizeImports equivalent absent) — noted in root vite.config.ts, revisit at 0.3.

Verify

Cloudflare preview builds for both Workers should build from this branch with zero dashboard changes (vp resolves from node_modules/.bin).

🤖 Generated with Claude Code

shakedex and others added 9 commits July 21, 2026 11:20
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
vp migrate rewrote apps/web/vite.config.ts to vite-plus (lazyPlugins),
moved dev/build/preview scripts to vp, and pinned vite-plus 0.2.5 via
bun catalog with the vite override alias. Deviations from the tool's
defaults: git hooks removed (prepare runs vp config --no-hooks, no
staged block), apps/docs manifest churn reverted, touched configs
reformatted back to house style.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
28 test files now import vite-plus/test; the one Bun-global usage
(ffmpeg-core-version.test.ts) rewritten to node:fs. packages/core drops
@types/bun for @types/node (tests execute under Vitest/Node) and its
dead no-emit build script. tools/release.test.ts stays on bun:test via
the new test:tools script since it tests a Bun-native release script.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Mirrors biome.json style (single quote, no semi, width 100) and its
exclusions; translates the three biome-ignore suppressions to
eslint-disable directives; hands editor format-on-save to the Oxc
extension. Known regression recorded: no import sorting in 0.2.x.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Markdown/JSONC now formatted (new oxfmt scope); tools/ gets a tsconfig
with bun types (first-ever type coverage there); run-pool callback
rebound via closure; csv String(unknown) suppressed with rationale;
release.ts template narrowed with String().

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
dev/typecheck/build orchestrate via vp run -r (cached where tasks
don't self-modify); release and test:tools remain bun-invoked.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
luna-web-docs 8f50133 Commit Preview URL

Branch Preview URL
Jul 21 2026, 08:36 AM

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
🔵 In progress
View logs
luna-web 8f50133 Jul 21 2026, 08:36 AM

shakedex and others added 3 commits July 21, 2026 11:37
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…heckout)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@shakedex
shakedex marked this pull request as ready for review July 21, 2026 08:52
@shakedex
shakedex merged commit 5463480 into master Jul 21, 2026
1 check passed
@shakedex
shakedex deleted the chore/vite-plus-migration branch July 21, 2026 08:52
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