Skip to content

Commit c7e7d96

Browse files
committed
tauri setup
1. vite-react 2. mantine 3. tanstack router
1 parent 6374113 commit c7e7d96

Some content is hidden

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

42 files changed

+5431
-0
lines changed

.gitignore

+24
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?

.prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 3,
4+
"semi": false,
5+
"singleQuote": true,
6+
"printWidth": 120,
7+
"bracketSpacing": true,
8+
"jsxBrcketSameLine": true,
9+
"arrowParens": "avoid"
10+
}

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"]
3+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Xplode 🚧

index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Xplode</title>
8+
</head>
9+
10+
<body>
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>

package.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "xplode",
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+
"@mantine/core": "^7.6.1",
14+
"@mantine/hooks": "^7.6.1",
15+
"@tanstack/react-router": "^1.17.4",
16+
"@tanstack/router-devtools": "^1.17.4",
17+
"@tauri-apps/api": "^1",
18+
"react": "^18.2.0",
19+
"react-dom": "^18.2.0"
20+
},
21+
"devDependencies": {
22+
"@tanstack/router-vite-plugin": "^1.16.5",
23+
"@tauri-apps/cli": "^1",
24+
"@types/react": "^18.2.15",
25+
"@types/react-dom": "^18.2.7",
26+
"@vitejs/plugin-react": "^4.2.1",
27+
"postcss": "^8.4.35",
28+
"postcss-preset-mantine": "^1.13.0",
29+
"postcss-simple-vars": "^7.0.1",
30+
"typescript": "^5.0.2",
31+
"vite": "^5.0.0"
32+
}
33+
}

postcss.config.cjs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
plugins: {
3+
'postcss-preset-mantine': {},
4+
'postcss-simple-vars': {
5+
variables: {
6+
'mantine-breakpoint-xs': '36em',
7+
'mantine-breakpoint-sm': '48em',
8+
'mantine-breakpoint-md': '62em',
9+
'mantine-breakpoint-lg': '75em',
10+
'mantine-breakpoint-xl': '88em',
11+
},
12+
},
13+
},
14+
}

public/tauri.svg

+6
Loading

public/vite.svg

+1
Loading

src-tauri/.gitignore

+4
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+

0 commit comments

Comments
 (0)