When to use this skill
ALWAYS use this skill when the user mentions:
- Creating a new Tauri v2 app from scratch / Create a new Tauri v2 app
- Choosing a create-tauri-app installation method / Choose a create-tauri-app installation method
- Minimal run verification for first boot / Minimal startup verification process
Trigger phrases include:
- "create-tauri-app", "new tauri app", "bootstrap", "dev mode"
- "Create Tauri", "New Project", "Initialize", "Startup Verification"
How to use this skill
- Pick the create-tauri-app installation method based on environment
- Run the creation command and select frontend template
- Install dependencies and start the Tauri dev mode
- Confirm the app boots with a minimal verification checklist
Outputs
- Creation commands by package manager / Creation commands by package manager
- Minimal boot verification checklist / Minimal startup verification checklist
Scope
- Boundary: Using create-tauri-app to create a Tauri v2 project
- Key points: Explain method trade-offs (npm, pnpm, bun, cargo, curl)
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/
- https://v2.tauri.app/start/
- https://v2.tauri.app/start/prerequisites/
- https://v2.tauri.app/start/create-project/
- https://v2.tauri.app/start/project-structure/
Keywords
create-tauri-app, tauri v2, new project, scaffold, dev mode
Common Pitfalls (Gotchas)
- Version Compatibility: Pay attention to the compatibility between framework versions and dependency libraries; APIs may differ across versions.
- Configuration File Format: Configuration file format errors are the most common issue; it is recommended to use your editor's syntax checking.
- Environment Variables: Ensure all necessary environment variables are set correctly, and do not hard-code sensitive information.
- Dependency Conflicts: When multiple versions coexist, watch out for dependency conflicts and use lock files to pin versions.
- Performance Pitfalls: In large-data scenarios, pay attention to performance optimization and avoid common issues such as N+1 queries.
Usage Workflow
Step 1: Environment Preparation
Ensure the necessary dependencies and tools are installed in the development environment.
Step 2: Configuration Initialization
Perform basic configuration according to project requirements.
Step 3: Using Core Features
Implement the core functionality according to the example code.
Step 4: Testing and Verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and Launch
After development is complete, proceed with deployment and monitoring.