mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 00:09:23 +02:00
[PR #1032] feat: add create-vinext-app CLI for scaffolding new projects #1035
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#1035
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/1032
Author: @Divkix
Created: 5/3/2026
Status: 🔄 Open
Base:
main← Head:feat/create-vinext-app📝 Commits (10+)
e8b0a51chore: scaffold create-vinext-app package structure934a2b9feat(create-vinext-app): add package manager detection and install command builder44ca4edfeat(create-vinext-app): add project name validation and path resolution1e00020feat(create-vinext-app): add catalog version baking from pnpm-workspace.yamlbdca5b0feat(create-vinext-app): add template scaffolding with variable substitutionc26edfefeat(create-vinext-app): add interactive prompts with @clack/promptsafdab2ffeat(create-vinext-app): add main CLI entry point with arg parsing and scaffold wiringa3fd0befeat(create-vinext-app): add App Router template0964d64feat(create-vinext-app): add Pages Router template046f7a8feat(create-vinext-app): add integration tests for App Router and Pages Router templates📊 Changes
43 files changed (+2456 additions, -253 deletions)
View changed files
📝
.github/workflows/ci.yml(+30 -1)📝
.github/workflows/publish.yml(+168 -1)📝
README.md(+24 -3)📝
examples/pages-router-cloudflare/worker/index.ts(+6 -237)📝
knip.ts(+9 -0)➕
packages/create-vinext-app/README.md(+98 -0)➕
packages/create-vinext-app/package.json(+32 -0)➕
packages/create-vinext-app/scripts/bake-versions.mjs(+78 -0)➕
packages/create-vinext-app/src/catalog.ts(+118 -0)➕
packages/create-vinext-app/src/index.ts(+249 -0)➕
packages/create-vinext-app/src/install.ts(+24 -0)➕
packages/create-vinext-app/src/prompts.ts(+50 -0)➕
packages/create-vinext-app/src/scaffold.ts(+122 -0)➕
packages/create-vinext-app/src/validate.ts(+84 -0)➕
packages/create-vinext-app/templates/app-router/README.md.tmpl(+30 -0)➕
packages/create-vinext-app/templates/app-router/_gitignore(+4 -0)➕
packages/create-vinext-app/templates/app-router/app/globals.css(+15 -0)➕
packages/create-vinext-app/templates/app-router/app/layout.tsx(+16 -0)➕
packages/create-vinext-app/templates/app-router/app/page.tsx(+10 -0)➕
packages/create-vinext-app/templates/app-router/package.json.tmpl(+26 -0)...and 23 more files
📄 Description
Summary
This PR introduces
create-vinext-app, a CLI tool for scaffolding new vinext projects targeting Cloudflare Workers.What's Included
Core CLI Features
--yes,--template <app|pages>,--skip-install,--no-gitpnpm-workspace.yamlto inject real dependency versionsTemplates
Testing & CI
create-vinext-apptests both templatesUsage
Files Added
Checklist
Closes the gap for users wanting to start fresh vinext projects without migrating from Next.js.
Ref: #407
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.