Skip to content

Commit b761547

Browse files
committed
Bit sophisticated build
1 parent 32abff2 commit b761547

File tree

7 files changed

+2372
-872
lines changed

7 files changed

+2372
-872
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "physics",
33
"scripts": {
4-
"server": "http-server -p 3000 ./dist",
5-
"tsc:watch": "tsc --watch",
6-
"build": "tsc",
7-
"deploy": "gh-pages -d dist"
4+
"server": "parcel src/index.html",
5+
"build": "parcel build src/index.html",
6+
"deploy": "gh-pages -d dist",
7+
"clean": "rm -fr dist"
88
},
99
"private": true,
10-
"dependencies": {
11-
"http-server": "^14.1.1",
12-
"typescript": "^5.7.3"
13-
},
1410
"devDependencies": {
15-
"gh-pages": "^6.3.0"
11+
"@parcel/config-default": "^2.13.3",
12+
"@parcel/transformer-typescript-tsc": "^2.13.3",
13+
"gh-pages": "^6.3.0",
14+
"parcel": "^2.13.3",
15+
"typescript": "^5.8.2"
1616
}
1717
}

pnpm-lock.yaml

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

src/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Particle simulation</title>
7+
<style>
8+
body {
9+
margin: 0;
10+
padding: 0;
11+
display: flex;
12+
justify-content: center;
13+
align-items: center;
14+
height: 100vh;
15+
background-color: #000;
16+
}
17+
</style>
18+
<script
19+
src="https://cdn.jsdelivr.net/npm/lil-gui@0.20"
20+
crossorigin="anonymous"
21+
referrerpolicy="no-referrer"
22+
></script>
23+
</head>
24+
<body>
25+
<canvas id="canvas"></canvas>
26+
</body>
27+
<script type="module" src="./index.ts"></script>
28+
</html>

0 commit comments

Comments
 (0)