feat: scaffold Tauri 2 desktop support (--desktop tauri) - #120
Merged
Conversation
New registry-driven "desktop" category exposed as --desktop tauri on create and a Desktop panel in the TUI. Scaffolds src-tauri/ (Cargo.toml, tauri.conf.json wired to the base's dev server and dist output, capabilities, neutral RGBA icon set) around any of the 7 bases; nuxt switches to SSG (ssr: false + generate). bump now scans the desktop category so the @tauri-apps/cli pin stays fresh. Closes #117 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
spencer-osbrjp
force-pushed
the
i117-20260812-1
branch
from
August 12, 2026 14:36
b4af210 to
fe0b0e4
Compare
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.
Closes #117
Stacked on #119 (needs its
copyDirsignature; merge #119 first and this PR reduces to the Tauri commit).What
A new registry-driven
desktopcategory, exposed as--desktop taurioncreateand a Desktop panel in the TUI wizard.src-tauri/next to the frontend:Cargo.toml,build.rs,src/main.rs+src/lib.rs,capabilities/default.json(copied verbatim from create-tauri-app v2, minus the opener plugin we don't scaffold),.gitignore, and a neutral RGBA icon set (generated from an original placeholder viatauri icon— no Tauri trademark assets; the 5 filestauri-buildneeds at dev + bundle time).tauri.conf.jsonis templated per project:devUrlon the pinned dev port 3000,beforeDevCommand/beforeBuildCommandfrom the package manager,frontendDistfrom the base's output dir, and a sanitizedidentifier/crate name (desktopSlughandles dots, underscores, spaces, unicode — and the.app-suffix andcom.tauri.devidentifier rules).ssr: false+ builds viagenerate— note: this also makes the same project's web deploy SPA output, intentional). Vite bases getclearScreen: false+ asrc-tauriwatch-ignore.src-tauri/and thetauriscript/CLI land inapps/web; README/AGENTS document thepnpm --filter web tauri devform.bumpnow scans the desktop category so@tauri-apps/clistays on the pinned-channel freshness policy.Testing
go test ./...green: three new scaffold-render cases (astro-react, nuxt SSG, monorepo) under the existing no-template-residue/valid-JSON invariants,TestTauriIconsRGBA(square + RGBA PNGs straight from the embedded FS), slug/identifier tables, package.json placement incl. monorepo, and a bump case pinning the desktop category. E2E smoke: scaffoldedvite-react --desktop tauri—src-tauri/complete, conf wired topnpm run dev/../dist.Running
tauri dev/tauri buildneeds a local Rust toolchain (documented in the generated README); not exercised in CI.Follow-ups noted during review (pre-existing, not widened into this PR)
BumpRegistryalso missesBackend/ORM/DatabasecategoriesBaseFramework.GetIntegrationhas an inverted nil check;IsVueIntcompares against "react"🤖 Generated with Claude Code