Loading...
Loading...
Compare original and translation side by side
AskUserQuestionAskUserQuestionls -AAskUserQuestionAskUserQuestionvue-ts| 模板参数 | 技术栈 |
|---|---|
| Vue + TypeScript(推荐) |
| Vue |
| React + TypeScript |
| React |
| Svelte + TypeScript |
| Svelte |
| Vanilla + TypeScript |
| Vanilla JS |
pnpm create tauri-app . --template <模板> --yes
pnpm installpnpm create tauri-app <项目名> --template <模板> --yes
cd <项目名>
pnpm installls -AAskUserQuestionAskUserQuestionvue-ts| Template Parameter | Tech Stack |
|---|---|
| Vue + TypeScript (Recommended) |
| Vue |
| React + TypeScript |
| React |
| Svelte + TypeScript |
| Svelte |
| Vanilla + TypeScript |
| Vanilla JS |
pnpm create tauri-app . --template <模板> --yes
pnpm installpnpm create tauri-app <项目名> --template <模板> --yes
cd <项目名>
pnpm installgit rev-parse --git-dir > /dev/null 2>&1AskUserQuestiongit init && git add . && git commit -m "init"git rev-parse --git-dir > /dev/null 2>&1AskUserQuestiongit init && git add . && git commit -m "init"AskUserQuestiongit add .
git commit -m "feat: add UI framework"AskUserQuestiongit add .
git commit -m "feat: add UI framework"AskUserQuestionvite.config.tstauri.conf.jsongit add .
git commit -m "config: change port to <新端口>"AskUserQuestionvite.config.tstauri.conf.jsongit add .
git commit -m "config: change port to <新端口>"AskUserQuestionpnpm tauri add window-stategit add .
git commit -m "feat: add window-state plugin"AskUserQuestionpnpm tauri add window-stategit add .
git commit -m "feat: add window-state plugin"tauri-best-practicesgit add AGENTS.md
git commit -m "docs: add AGENTS.md"tauri-best-practicesgit add AGENTS.md
git commit -m "docs: add AGENTS.md"pnpm dev # 纯网页开发
pnpm tauri dev # 开发模式
pnpm tauri build # 构建应用pnpm dev # Pure web development
pnpm tauri dev # Development mode
pnpm tauri build # Build applicationpnpm tauri addtauri-best-practicespnpm tauri addtauri-best-practices