Repository navigation
chore: update to cf 1.0 RC, Vite+ 1.9, pnpm 12 and the Cloudflare Vitest plugin - #2
Merged
Merged
Conversation
…est plugin
Align the template with what `cf init` now scaffolds:
- cf 1.0.0-rc.7, @cloudflare/vite-plugin 2.0.0-rc.9, vite-plus 1.9.0
(Vite+ core 8.4.0, Vitest 5.1.2), pnpm 12
- `cf dev`, `cf build` and `cf deploy` now delegate to Vite+, so scripts
use them directly
- Tests run inside workerd via @cloudflare/vitest-plugin with
`cloudflareTest({ config: true })`, reading cloudflare.config.ts. This
removes the Miniflare harness, global build step and compatibility.ts
- The greeting is a text binding read via `env` from cloudflare:workers
- `allowBuilds` replaces `onlyBuiltDependencies`; tsconfig follows the
scaffold (es2024, module preserve) and covers test/
- Bump GitHub Actions; claude-code-action moves from @beta to @v1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LZ7qcSerar8pyiBVvXt1Mt
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.
Brings the template in line with what
cf init(1.0.0-rc.7) now scaffolds, and updates everything to the latest releases.Versions
cf1.0.0-rc.7,@cloudflare/vite-plugin2.0.0-rc.9,vite-plus1.9.0, pnpm 12.26.0viteisnpm:@voidzero-dev/vite-plus-core@8.4.0, and Vitest is 5.1.2. Both are pinned as dev dependencies and aspnpm-workspace.yamloverrides, ascf initdoesenginesuses the same supported ranges ascfSetup
dev,buildanddeployruncf dev,cf buildandcf deploy, which delegate tovp.cf deploybuilds first, so the Workers Builds deploy command stayspnpm run deploy@cloudflare/vitest-plugin(cloudflareTest({ config: true })in a newvitest.config.ts), reading the Worker, bindings and compatibility settings fromcloudflare.config.ts. This removestest/harness.ts,test/global-setup.ts,compatibility.ts,test/tsconfig.jsonand the directminiflarepinbindings.text()binding read viaenvfromcloudflare:workers; compatibility date 2026-12-01allowBuildsreplacesonlyBuiltDependencies;tsconfig.jsonfollows the scaffold (es2024,module: "preserve") and coverstest/.gitignoreno longer ignores.env.example/.dev.vars.exampleGitHub Actions
actions/checkoutv7,setup-vpv1.22.0,sticky-pull-request-commentv3.0.5claude.yml:claude-code-action@beta→@v1(allowed_tools→claude_args: --allowedTools …,timeout_minutes→ job-leveltimeout-minutes), and installs withsetup-vpNotes
pnpm-workspace.yamlhasminimumReleaseAgeExcludeentries for yesterday's Cloudflare releases. They can be removed once those agecfrc.7 pins an older Miniflare than the plugins, so two workerd versions are installed for now. Dev, build and tests use the plugins' newer oneTesting
On a clean
pnpm install --frozen-lockfile:pnpm checkandpnpm test(2/2) pass;pnpm buildandpnpm devwork (/and/api/helloserved).pnpm deployand the workflow changes have not been run.Generated by Claude Code