Skip to content

feat: add Tauri desktop app templates for static generation#142

Merged
Marve10s merged 1 commit intomainfrom
worktree-agent-a9bbf2a6
Apr 10, 2026
Merged

feat: add Tauri desktop app templates for static generation#142
Marve10s merged 1 commit intomainfrom
worktree-agent-a9bbf2a6

Conversation

@Marve10s
Copy link
Copy Markdown
Owner

@Marve10s Marve10s commented Apr 9, 2026

Summary

  • Replace runtime @tauri-apps/cli init with static template files so the generator emits src-tauri/ without network access or external CLI tools
  • Add @tauri-apps/api as a runtime dependency alongside the existing @tauri-apps/cli devDep
  • Template-based approach generates tauri.conf.json, Cargo.toml, main.rs, lib.rs, build.rs, and capabilities/default.json with frontend-aware build configuration (correct devUrl, frontendDist per framework)

Files changed

File Change
packages/template-generator/templates/addons/tauri/ New template directory with 6 files
packages/template-generator/src/template-handlers/addons.ts Route Tauri addon to templates
packages/template-generator/src/processors/addons-deps.ts Add @tauri-apps/api as runtime dep
packages/template-generator/src/utils/add-deps.ts Add @tauri-apps/api version to dep map
apps/cli/src/helpers/addons/tauri-setup.ts Replace runtime CLI exec with no-op (templates handle everything)
apps/cli/test/template-snapshots.test.ts Add Tauri snapshot combo
apps/cli/test/__snapshots__/template-snapshots.test.ts.snap Updated snapshots

Test plan

  • cli-builder-sync.test.ts passes (352 tests)
  • addons.test.ts passes (122 tests, including existing Tauri compat tests)
  • template-snapshots.test.ts passes (66 tests, new Tauri snapshot included)
  • Scaffold + type-check 3 combos: Next.js, TanStack Router, SvelteKit (all pass)
  • CLI check-types passes
  • Web typecheck passes
  • validate:tech-links passes (330/330)

Replace runtime @tauri-apps/cli init with static template files so
the generator can emit src-tauri/ without network access or external
CLI tools. Adds @tauri-apps/api as a runtime dependency alongside the
existing @tauri-apps/cli devDep.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
better-fullstack-web Ignored Ignored Apr 9, 2026 8:48pm

@github-actions github-actions bot added size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 9, 2026
@Marve10s Marve10s merged commit f83f9f0 into main Apr 10, 2026
13 checks passed
Marve10s added a commit that referenced this pull request Apr 11, 2026
## New Tools (18 additions across all ecosystems)

### TypeScript
- **Algolia** search engine (#125)
- **Vercel** deployment with compat rules (#137)
- **GraphQL Yoga + Pothos** API option (#139)
- **Tauri** desktop app addon (#142)
- **i18n** category: i18next + next-intl (#149)

### Rust
- **tracing + env-logger** logging category (#126)
- **anyhow + thiserror + eyre** error handling category (#135)
- **Diesel** ORM (#140)
- **Rocket** web framework (#143)
- **moka + redis** caching category (#144)

### Go
- **Fiber** web framework (#127)
- **Chi** web framework (#133)
- **zerolog + slog** logging (#138)
- **Ent** ORM (#145)

### Python
- **Flask** web framework (#128)
- **Litestar** web framework (#136)
- **authlib + jwt** auth category (#141)
- **Strawberry** GraphQL category (#148)

## Infrastructure
- Adding new tool options guideline (3,000+ lines, 7 files)
- PR-aware smoke tests (--force-option, --force-non-none, --partition)
- Strengthened CI: test:release expanded, smoke tests block PRs
- Compatibility rules guideline with template parity checks
- Meilisearch template fix for v0.57 API changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant