Skip to content

Commit dc91293

Browse files
committed
🎉 initial commit
0 parents  commit dc91293

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+6000
-0
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
node_modules
2+
3+
# Output
4+
.output
5+
.vercel
6+
/.svelte-kit
7+
/build
8+
9+
# OS
10+
.DS_Store
11+
Thumbs.db
12+
13+
# Env
14+
.env
15+
.env.*
16+
!.env.example
17+
!.env.test
18+
19+
# Vite
20+
vite.config.js.timestamp-*
21+
vite.config.ts.timestamp-*

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Package Managers
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"overrides": [
8+
{
9+
"files": "*.svelte",
10+
"options": {
11+
"parser": "svelte"
12+
}
13+
}
14+
]
15+
}

README.md

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Tauri 2 + Svelte 5 + Shadcn Boilerplate
2+
3+
[![Tauri 2.0](https://img.shields.io/badge/Tauri-2.0-blue)](https://tauri.app/)
4+
[![Svelte 5](https://img.shields.io/badge/Svelte-5.0-orange)](https://svelte.dev/)
5+
[![Bun](https://img.shields.io/badge/Bun-ts-pink)](https://bun.sh/)
6+
[![shadcn-svelte](https://img.shields.io/badge/UI-shadcn--svelte-purple)](https://www.shadcn-svelte.com/)
7+
8+
A modern, feature-rich boilerplate for building cross-platform desktop applications using Tauri 2, Svelte 5, and shadcn-svelte components. This template provides a solid foundation for developing performant desktop applications with a beautiful UI.
9+
10+
## ✨ Features
11+
12+
- 🚀 **Tauri 2.0** - Build smaller, faster, and more secure desktop applications
13+
- 🎯 **Svelte 5** - Cybernetically enhanced web apps with runes
14+
- 💅 **shadcn-svelte** - Beautiful and accessible UI components
15+
- 🎨 **TailwindCSS** - Utility-first CSS framework
16+
- 📦 **Bun** - Fast JavaScript runtime and package manager
17+
- 🔧 **TypeScript** - Type-safe development
18+
- 🎭 **Pre-configured development environment**
19+
20+
## 🚀 Getting Started
21+
22+
### Prerequisites
23+
24+
Before you begin, ensure you have the following installed:
25+
26+
1. **Bun** - [Bun installation](https://bun.sh/docs/installation)
27+
2. **Rust** - [Rust installation](https://www.rust-lang.org/tools/install)
28+
3. **For Windows Users:**
29+
- Install [Visual Studio Community](https://visualstudio.microsoft.com/vs/community/)
30+
- During installation, select "Desktop development with C++" workload
31+
32+
### Installation
33+
34+
1. Clone the repository:
35+
```bash
36+
git clone https://github.com/alysonhower/tauri2-svelte5-shadcn.git
37+
```
38+
39+
2. Navigate to the project directory:
40+
```bash
41+
cd tauri2-svelte5-shadcn
42+
```
43+
44+
3. Install dependencies:
45+
```bash
46+
bun install
47+
```
48+
49+
## 🛠️ Development
50+
51+
### Start Development Server
52+
```bash
53+
bun run tauri dev
54+
```
55+
56+
### Build Production Release
57+
```bash
58+
bun run tauri build
59+
```
60+
61+
### Code Formatting
62+
```bash
63+
bun run format
64+
```
65+
66+
### Adding UI Components
67+
To add shadcn components (e.g., button):
68+
```bash
69+
bunx shadcn-svelte@latest add button
70+
```
71+
72+
## 📚 Usefull Links
73+
74+
- [Svelte 5](https://svelte.dev/)
75+
- [Tauri 2](https://tauri.app/start/)
76+
- [TailwindCSS](https://tailwindcss.com/)
77+
- [Shadcn-svelte](https://next.shadcn-svelte.com/)
78+
79+
## 🤝 Contributing
80+
81+
Contributions are welcome! Feel free to:
82+
83+
1. Fork the repository
84+
2. Create a feature branch
85+
3. Submit a Pull Request
86+
87+
Please ensure your PR follows the project's coding standards and includes appropriate tests.
88+
89+
## ⚠️ Platform Support
90+
91+
Currently tested and verified on:
92+
- ✅ Windows 11

bun.lockb

90.9 KB
Binary file not shown.

components.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://next.shadcn-svelte.com/schema.json",
3+
"style": "default",
4+
"tailwind": {
5+
"config": "tailwind.config.ts",
6+
"css": "src/app.css",
7+
"baseColor": "slate"
8+
},
9+
"aliases": {
10+
"components": "$lib/components",
11+
"utils": "$lib/utils",
12+
"ui": "$lib/components/ui",
13+
"hooks": "$lib/hooks"
14+
},
15+
"typescript": true,
16+
"registry": "https://next.shadcn-svelte.com/registry"
17+
}

package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "tauri2-svelte5-shadcn",
3+
"version": "0.0.1",
4+
"type": "module",
5+
"scripts": {
6+
"dev": "vite dev",
7+
"build": "vite build",
8+
"preview": "vite preview",
9+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
10+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
11+
"format": "prettier --write ./src",
12+
"lint": "prettier --check ./src",
13+
"tauri": "tauri"
14+
},
15+
"devDependencies": {
16+
"@sveltejs/kit": "^2.7.4",
17+
"@sveltejs/vite-plugin-svelte": "^4.0.0",
18+
"@tailwindcss/typography": "^0.5.15",
19+
"autoprefixer": "^10.4.20",
20+
"bits-ui": "^1.0.0-next.40",
21+
"clsx": "^2.1.1",
22+
"prettier": "^3.3.3",
23+
"prettier-plugin-svelte": "^3.2.7",
24+
"svelte": "^5.1.9",
25+
"svelte-check": "^4.0.5",
26+
"tailwind-merge": "^2.5.4",
27+
"tailwind-variants": "^0.2.1",
28+
"tailwindcss": "^3.4.14",
29+
"tailwindcss-animate": "^1.0.7",
30+
"typescript": "^5.6.3",
31+
"vite": "^5.4.10",
32+
"@sveltejs/adapter-static": "^3.0.6",
33+
"@tauri-apps/cli": "^2.0.4",
34+
"bun-types": "^1.1.34",
35+
"lucide-svelte": "^0.454.0",
36+
"mode-watcher": "^0.4.1"
37+
},
38+
"dependencies": {}
39+
}

postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {}
5+
}
6+
};

src-tauri/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/
4+
/gen/schemas

0 commit comments

Comments
 (0)