Skip to content

Commit 6f82b32

Browse files
committed
tauri
1 parent f4593c6 commit 6f82b32

36 files changed

+5690
-0
lines changed

bun.lock

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/tauri/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

packages/tauri/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Tauri + Vanilla TS
2+
3+
This template should help get you started developing with Tauri in vanilla HTML, CSS and Typescript.
4+
5+
## Recommended IDE Setup
6+
7+
- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)

packages/tauri/index.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="stylesheet" href="/src/styles.css" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Tauri App</title>
8+
<script type="module" src="/src/main.ts" defer></script>
9+
</head>
10+
11+
<body>
12+
<main class="container">
13+
<h1>Welcome to Tauri</h1>
14+
15+
<div class="row">
16+
<a href="https://vite.dev" target="_blank">
17+
<img src="/src/assets/vite.svg" class="logo vite" alt="Vite logo" />
18+
</a>
19+
<a href="https://tauri.app" target="_blank">
20+
<img
21+
src="/src/assets/tauri.svg"
22+
class="logo tauri"
23+
alt="Tauri logo"
24+
/>
25+
</a>
26+
<a href="https://www.typescriptlang.org/docs" target="_blank">
27+
<img
28+
src="/src/assets/typescript.svg"
29+
class="logo typescript"
30+
alt="typescript logo"
31+
/>
32+
</a>
33+
</div>
34+
<p>Click on the Tauri logo to learn more about the framework</p>
35+
36+
<form class="row" id="greet-form">
37+
<input id="greet-input" placeholder="Enter a name..." />
38+
<button type="submit">Greet</button>
39+
</form>
40+
<p id="greet-msg"></p>
41+
</main>
42+
</body>
43+
</html>

packages/tauri/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "@opencode-ai/tauri",
3+
"private": true,
4+
"version": "0.1.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"preview": "vite preview",
10+
"tauri": "tauri"
11+
},
12+
"dependencies": {
13+
"@tauri-apps/api": "^2",
14+
"@tauri-apps/plugin-opener": "^2"
15+
},
16+
"devDependencies": {
17+
"@tauri-apps/cli": "^2",
18+
"vite": "^6.0.3",
19+
"typescript": "~5.6.2"
20+
}
21+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/
4+
5+
# Generated by Tauri
6+
# will have schema files for capabilities auto-completion
7+
/gen/schemas

0 commit comments

Comments
 (0)