Skip to content

Commit 8c93ea2

Browse files
committed
Add vite app sample
1 parent b22185c commit 8c93ea2

17 files changed

+3138
-0
lines changed

.eslintrc.cjs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react-hooks/recommended',
8+
],
9+
ignorePatterns: ['dist', '.eslintrc.cjs'],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['react-refresh'],
12+
rules: {
13+
'react-refresh/only-export-components': [
14+
'warn',
15+
{ allowConstantExport: true },
16+
],
17+
},
18+
}

index.html

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

package.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "vite-app",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
10+
"preview": "vite preview"
11+
},
12+
"dependencies": {
13+
"@fontsource-variable/roboto-mono": "^5.0.8",
14+
"@mantine/core": "^6.0.17",
15+
"@react-three/drei": "^9.80.1",
16+
"@react-three/fiber": "^8.13.6",
17+
"@react-three/postprocessing": "^2.15.0",
18+
"@tabler/icons-react": "^2.30.0",
19+
"react": "^18.2.0",
20+
"react-dom": "^18.2.0",
21+
"three": "^0.155.0"
22+
},
23+
"devDependencies": {
24+
"@types/react": "^18.2.15",
25+
"@types/react-dom": "^18.2.7",
26+
"@types/three": "^0.154.0",
27+
"@typescript-eslint/eslint-plugin": "^6.0.0",
28+
"@typescript-eslint/parser": "^6.0.0",
29+
"@vitejs/plugin-react": "^4.0.3",
30+
"eslint": "^8.45.0",
31+
"eslint-plugin-react-hooks": "^4.6.0",
32+
"eslint-plugin-react-refresh": "^0.4.3",
33+
"typescript": "^5.0.2",
34+
"vite": "^4.4.5"
35+
}
36+
}

0 commit comments

Comments
 (0)