Skip to content

Commit 72cb28b

Browse files
author
Eiren Rain
committed
New project structure for frontend / server
1 parent addb341 commit 72cb28b

Some content is hidden

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

48 files changed

+5715
-2412
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules/
2-
env/
3-
dist/
2+
node_modules/

apps/front/dist/assets/index-D4dv4Lzd.js

+2,572
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/front/dist/index.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<html>
2+
<head>
3+
<meta charset="utf-8" />
4+
<title>My first three.js app</title>
5+
<style>
6+
body {
7+
margin: 0;
8+
}
9+
canvas {
10+
width: 100%;
11+
height: 100%;
12+
}
13+
</style>
14+
<script type="module" crossorigin src="/assets/index-D4dv4Lzd.js"></script>
15+
</head>
16+
<body>
17+
<div id="app"></div>
18+
19+
</body>
20+
</html>

apps/front/index.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<html>
2+
<head>
3+
<meta charset="utf-8" />
4+
<title>My first three.js app</title>
5+
<style>
6+
body {
7+
margin: 0;
8+
}
9+
canvas {
10+
width: 100%;
11+
height: 100%;
12+
}
13+
</style>
14+
</head>
15+
<body>
16+
<div id="app"></div>
17+
18+
<script type="module" src="/src/index.ts"></script>
19+
</body>
20+
</html>

apps/front/package.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "three-ts-starter",
3+
"version": "1.0.0",
4+
"description": "",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite --host",
8+
"build": "tsc && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@slimevr/gyro-ws": "workspace:*",
13+
"@types/three": "^0.173.0",
14+
"socket.io-client": "^4.8.1",
15+
"three": "0.110.0",
16+
"typescript": "^5.7.3",
17+
"vite": "^6.2.0"
18+
},
19+
"keywords": [],
20+
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
21+
}

0 commit comments

Comments
 (0)