Skip to content

feat(create): use Cloudflare’s Oxlint preset in new monorepos - #3539

Merged
fengmk2 merged 7 commits into
mainfrom
codex/monorepo-cloudflare-oxlint
Nov 25, 2026
Merged

fengmk2 merged 7 commits into
mainfrom
codex/monorepo-cloudflare-oxlint

Conversation

@fengmk2

@fengmk2 fengmk2 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

vp create vite:monorepo now configures Oxlint to use Cloudflare’s rules across the workspace. The template installs @cloudflare/oxlint-config@^0.2.0. The root vite.config.ts imports @cloudflare/oxlint-config/vite-plus and adds it to lint.extends.

The template keeps TypeScript checks and the Vite+ import rule enabled. The demo website allows non-null assertions for its two DOM lookups.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://codex-monorepo-cloudflare-oxlint-viteplus-dev.voidzero-docs.workers.dev (commit 06b09bc)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://18b6217f-viteplus-dev.voidzero-docs.workers.dev 06b09bc 2026-11-25T05:49:02.015Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://4ea5bb72-viteplus-dev.voidzero-docs.workers.dev 13ef70d 2026-11-25T02:47:51.784Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://b7c8c701-viteplus-dev.voidzero-docs.workers.dev 8e8d26b 2026-11-25T02:34:37.486Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://6c7a5dc7-viteplus-dev.voidzero-docs.workers.dev ba5fe38 2026-11-25T01:59:30.142Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://0ceb63bb-viteplus-dev.voidzero-docs.workers.dev 609a064 2026-11-24T15:33:09.758Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://58bba1d0-viteplus-dev.voidzero-docs.workers.dev e6719b9 2026-11-24T09:16:05.116Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c2d589c7-viteplus-dev.voidzero-docs.workers.dev 4840cbe 2026-11-24T08:49:53.621Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://8a25afff-viteplus-dev.voidzero-docs.workers.dev 2dac08d 2026-11-24T03:17:06.231Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://371001a5-viteplus-dev.voidzero-docs.workers.dev 27998c1 2026-11-23T10:12:10.610Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://cfcb4a9f-viteplus-dev.voidzero-docs.workers.dev 9c68a25 2026-11-22T14:26:33.175Z Visit the dashboard ↗

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

CLI artifact sizes (06b09bc)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.
The dist rows use the Linux build. The core total excludes .node files to match the release artifact.

Artifact Format Base PR Change
packages/cli/dist Directory total 2.40 MiB 2.40 MiB +283 B (+0.01%)
packages/core/dist Directory total 4.11 MiB 4.11 MiB 0 B (0.00%)
Combined package dist Directory total 6.51 MiB 6.51 MiB +283 B (+0.00%)
vp (Linux x64) Binary 8.57 MiB 8.57 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 3.92 MiB 3.92 MiB +112 B (+0.00%)
NAPI (Linux x64) Binary 37.31 MiB 37.31 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 14.91 MiB 14.91 MiB -97 B (-0.00%)
vp (macOS ARM64) Binary 5.61 MiB 5.61 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 3.35 MiB 3.35 MiB -18 B (-0.00%)
NAPI (macOS ARM64) Binary 43.83 MiB 43.83 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 19.04 MiB 19.04 MiB +66 B (+0.00%)
vp (Windows x64) Binary 6.65 MiB 6.65 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 3.03 MiB 3.03 MiB -140 B (-0.00%)
NAPI (Windows x64) Binary 33.25 MiB 33.25 MiB 0 B (0.00%)
NAPI (Windows x64) gzip -9 13.64 MiB 13.64 MiB -105 B (-0.00%)
Trampoline (Windows x64) Binary 13.50 KiB 13.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 7.09 KiB 7.09 KiB 0 B (0.00%)
Installer (Windows x64) Binary 4.69 MiB 4.69 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.25 MiB 2.25 MiB 0 B (0.00%)

@fengmk2
fengmk2 force-pushed the codex/monorepo-cloudflare-oxlint branch 2 times, most recently from 2dac08d to 4840cbe Compare November 24, 2026 08:49
@fengmk2 fengmk2 self-assigned this Nov 24, 2026
@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests labels Nov 24, 2026
@fengmk2
fengmk2 marked this pull request as ready for review November 24, 2026 08:58
@fengmk2
fengmk2 requested review from cpojer and a balanced review from Copilot and removed request for Copilot November 24, 2026 08:58
@fengmk2
fengmk2 force-pushed the codex/monorepo-cloudflare-oxlint branch from 8e8d26b to 13ef70d Compare November 25, 2026 02:47
@fengmk2 fengmk2 added the preview-build Publish this PR's commits to the registry bridge as preview builds label Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Preview binary sizes (06b09bc)

Compared with the latest stable release, v1.8.0. Preview build.
Each row measures one binary. Negative changes mean a smaller preview binary.

Binary Latest release Preview Change
vp (macOS ARM64) 5.61 MiB 5.61 MiB 0 B (0.00%)
NAPI (macOS ARM64) 43.80 MiB 43.80 MiB +48 B (+0.00%)
vp (macOS x64) 7.12 MiB 7.12 MiB 0 B (0.00%)
NAPI (macOS x64) 49.23 MiB 49.24 MiB +4.05 KiB (+0.01%)
vp (Linux ARM64 GNU) 7.10 MiB 7.10 MiB 0 B (0.00%)
NAPI (Linux ARM64 GNU) 33.13 MiB 33.13 MiB +4.00 KiB (+0.01%)
vp (Linux ARM64 musl) 7.18 MiB 7.18 MiB +128 B (+0.00%)
NAPI (Linux ARM64 musl) 32.34 MiB 32.34 MiB +128 B (+0.00%)
vp (Linux x64 GNU) 8.57 MiB 8.57 MiB 0 B (0.00%)
NAPI (Linux x64 GNU) 37.23 MiB 37.23 MiB 0 B (0.00%)
vp (Linux x64 musl) 8.64 MiB 8.64 MiB +64 B (+0.00%)
NAPI (Linux x64 musl) 36.42 MiB 36.42 MiB +128 B (+0.00%)
vp (Windows x64) 6.66 MiB 6.66 MiB 0 B (0.00%)
NAPI (Windows x64) 32.89 MiB 32.89 MiB +512 B (+0.00%)
Trampoline (Windows x64) 13.00 KiB 13.00 KiB 0 B (0.00%)
Installer (Windows x64) 4.70 MiB 4.70 MiB 0 B (0.00%)
vp (Windows ARM64) 5.87 MiB 5.87 MiB +512 B (+0.01%)
NAPI (Windows ARM64) 29.02 MiB 29.02 MiB +4.00 KiB (+0.01%)
Trampoline (Windows ARM64) 13.00 KiB 13.00 KiB 0 B (0.00%)
Installer (Windows ARM64) 3.87 MiB 3.87 MiB 0 B (0.00%)
gzip -9 sizes
Binary Latest release Preview Change
vp (macOS ARM64) 3.35 MiB 3.35 MiB -433 B (-0.01%)
NAPI (macOS ARM64) 19.03 MiB 19.03 MiB -436 B (-0.00%)
vp (macOS x64) 3.53 MiB 3.53 MiB +52 B (+0.00%)
NAPI (macOS x64) 20.33 MiB 20.33 MiB -896 B (-0.00%)
vp (Linux ARM64 GNU) 3.85 MiB 3.85 MiB -43 B (-0.00%)
NAPI (Linux ARM64 GNU) 14.13 MiB 14.12 MiB -2.68 KiB (-0.02%)
vp (Linux ARM64 musl) 3.88 MiB 3.88 MiB +83 B (+0.00%)
NAPI (Linux ARM64 musl) 13.82 MiB 13.82 MiB +1.74 KiB (+0.01%)
vp (Linux x64 GNU) 3.92 MiB 3.92 MiB +62 B (+0.00%)
NAPI (Linux x64 GNU) 14.87 MiB 14.87 MiB -95 B (-0.00%)
vp (Linux x64 musl) 3.95 MiB 3.95 MiB +664 B (+0.02%)
NAPI (Linux x64 musl) 14.54 MiB 14.54 MiB -94 B (-0.00%)
vp (Windows x64) 3.03 MiB 3.03 MiB +35 B (+0.00%)
NAPI (Windows x64) 13.50 MiB 13.50 MiB +2.10 KiB (+0.02%)
Trampoline (Windows x64) 7.14 KiB 7.14 KiB +3 B (+0.04%)
Installer (Windows x64) 2.25 MiB 2.25 MiB +7 B (+0.00%)
vp (Windows ARM64) 2.90 MiB 2.90 MiB -203 B (-0.01%)
NAPI (Windows ARM64) 12.79 MiB 12.79 MiB +1019 B (+0.01%)
Trampoline (Windows ARM64) 6.92 KiB 6.92 KiB 0 B (0.00%)
Installer (Windows ARM64) 2.15 MiB 2.15 MiB +53 B (+0.00%)

Raw sizes are uncompressed file sizes. gzip sizes recompress each binary at level 9; they are not package or download archive sizes.
The baseline uses published release files, including NAPI packages from npm at the same version. Build versions and toolchains can affect the difference.

@github-actions

Copy link
Copy Markdown
Contributor

Registry bridge build (06b09bc)

This commit build is published to the registry bridge, which serves these as ordinary npm versions (every other package proxies to npmjs):

Package Version
vite-plus 0.0.0-commit.06b09bc4982271512bf43048d53a278599f59508
@voidzero-dev/vite-plus-core 0.0.0-commit.06b09bc4982271512bf43048d53a278599f59508
create-vite-plus 0.0.0-commit.06b09bc4982271512bf43048d53a278599f59508

Install the Vite+ CLI built from this commit, then migrate a project:

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/voidzero-dev/vite-plus/06b09bc4982271512bf43048d53a278599f59508/packages/cli/install.sh | VP_PR_VERSION=3539 VP_LEGACY_INSTALLER_URL=https://raw.githubusercontent.com/voidzero-dev/vite-plus/06b09bc4982271512bf43048d53a278599f59508/packages/cli/install-legacy.sh bash
# Windows (PowerShell)
$env:VP_PR_VERSION="3539"; $env:VP_LEGACY_INSTALLER_URL="https://raw.githubusercontent.com/voidzero-dev/vite-plus/06b09bc4982271512bf43048d53a278599f59508/packages/cli/install-legacy.ps1"; irm https://raw.githubusercontent.com/voidzero-dev/vite-plus/06b09bc4982271512bf43048d53a278599f59508/packages/cli/install.ps1 | iex

Or install with Homebrew (macOS / glibc Linux):

These commands use the formula and binary from this published commit. Replace brew install with brew reinstall if the tap package is already installed.
If Homebrew Core’s vite-plus is installed, run brew uninstall vite-plus first. This keeps your user data; do not run vp implode to switch installations.

(
  set -eu
  export HOMEBREW_NO_AUTO_UPDATE=1
  export HOMEBREW_VP_PR_VERSION=06b09bc4982271512bf43048d53a278599f59508
  brew tap voidzero-dev/vite-plus https://github.com/voidzero-dev/vite-plus
  preview_tap="$(brew --repository voidzero-dev/vite-plus)"
  git -C "$preview_tap" fetch --depth=1 https://github.com/voidzero-dev/vite-plus.git "$HOMEBREW_VP_PR_VERSION"
  git -C "$preview_tap" switch --detach "$HOMEBREW_VP_PR_VERSION"
  brew install voidzero-dev/vite-plus/vp
  brew test voidzero-dev/vite-plus/vp
  "$(brew --prefix)/bin/vp"
)

The tap stays at the tested commit. Return it to main after testing:

git -C "$(brew --repository voidzero-dev/vite-plus)" switch main

Or download the standalone Windows installer built from this commit:

Architecture Installer
x64 vp-setup-x86_64-pc-windows-msvc.exe
Arm64 vp-setup-aarch64-pc-windows-msvc.exe

GitHub requires you to sign in and downloads each installer as a ZIP artifact. Extract vp-setup.exe, then run it against this preview build:

.\vp-setup.exe --version "0.0.0-commit.06b09bc4982271512bf43048d53a278599f59508" --registry "https://registry-bridge.viteplus.dev/"

After installing, upgrade the current project's vite-plus to this test build with:

vp migrate

Or create a new project from this commit without installing the CLI:

export npm_config_registry=https://registry-bridge.viteplus.dev/ pnpm_config_registry=https://registry-bridge.viteplus.dev/
pnpm create vite-plus@0.0.0-commit.06b09bc4982271512bf43048d53a278599f59508 # or: npm create vite-plus@0.0.0-commit.06b09bc4982271512bf43048d53a278599f59508
$env:npm_config_registry="https://registry-bridge.viteplus.dev/"; $env:pnpm_config_registry="https://registry-bridge.viteplus.dev/"
pnpm create vite-plus@0.0.0-commit.06b09bc4982271512bf43048d53a278599f59508 # or: npm create vite-plus@0.0.0-commit.06b09bc4982271512bf43048d53a278599f59508

pnpm 11+ reads pnpm_config_registry, npm and older pnpm read npm_config_registry. The new project pins this build, so keep the registry set for later installs, or configure it as below.

Or point your package manager at the bridge registry https://registry-bridge.viteplus.dev/:

Package manager Registry config
npm / pnpm / Bun .npmrc: registry=https://registry-bridge.viteplus.dev/
Yarn (v2+) .yarnrc.yml: npmRegistryServer: "https://registry-bridge.viteplus.dev/"

Then pin the build (vite aliases to vite-plus-core; pnpm can use a catalog, npm an overrides entry):

{
  "devDependencies": {
    "vite-plus": "0.0.0-commit.06b09bc4982271512bf43048d53a278599f59508",
    "vite": "npm:@voidzero-dev/vite-plus-core@0.0.0-commit.06b09bc4982271512bf43048d53a278599f59508"
  }
}

@github-actions

Copy link
Copy Markdown
Contributor

🐳 Docker preview image

Built from this PR's registry bridge build:

Image Compressed size
ghcr.io/voidzero-dev/vite-plus:pr-3539 229MB
# remove any stale local copy from a previous run, then pull fresh
docker rmi ghcr.io/voidzero-dev/vite-plus:pr-3539 2>/dev/null; docker pull ghcr.io/voidzero-dev/vite-plus:pr-3539

Quick check:

docker run --rm ghcr.io/voidzero-dev/vite-plus:pr-3539 vp --version

See docs/guide/docker.md for usage.

@fengmk2
fengmk2 merged commit 08d98e2 into main Nov 25, 2026
145 of 170 checks passed
@fengmk2
fengmk2 deleted the codex/monorepo-cloudflare-oxlint branch November 25, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-build Publish this PR's commits to the registry bridge as preview builds test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants