Skip to content

Commit c25f7e8

Browse files
committed
feat: make assets pipeline deterministic
1 parent c18ee4b commit c25f7e8

16 files changed

+2468
-2170
lines changed

frontend/package-lock.json

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

frontend/package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"test:e2e": "playwright test",
11+
"assets:gen": "python ../scripts/generate_reference_glbs.py",
12+
"assets:pack": "bash ../scripts/pack_models.sh",
13+
"assets:validate": "python ../scripts/glb_validate.py public/models/*.glb --fail-on-warning",
14+
"assets:manifest": "python ../scripts/gen_glb_manifest.py > public/models/manifest.json",
15+
"assets:all": "npm run assets:gen && npm run assets:pack && npm run assets:validate && npm run assets:manifest",
16+
"test:manifest": "vitest run --reporter=dot"
1017
},
1118
"dependencies": {
1219
"@chakra-ui/icons": "^2.1.1",
@@ -32,6 +39,10 @@
3239
"eslint-config-next": "14.2.0",
3340
"postcss": "^8",
3441
"tailwindcss": "^3.3.0",
35-
"typescript": "^5"
42+
"typescript": "^5",
43+
"gltfpack": "0.25.0",
44+
"meshoptimizer": "0.25.0",
45+
"vitest": "^1.6.0",
46+
"@playwright/test": "^1.56.0"
3647
}
3748
}

frontend/public/models/BaseCabinet600.glb

Lines changed: 0 additions & 2152 deletions
This file was deleted.
4.26 KB
Binary file not shown.
3.96 KB
Binary file not shown.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"models": [
3+
{
4+
"file": "/models/base_600.glb",
5+
"sha256": "45f4940517b77d748dc71d4efa6fc07ca4115ce92143fde4dfdcb424959b0b54",
6+
"bytes": 4360
7+
},
8+
{
9+
"file": "/models/base_600@lod1.glb",
10+
"sha256": "c21ba9280c2a68a068b1282429c1c650303631d048492daf0e9bbc3c6c639d3e",
11+
"bytes": 4052
12+
},
13+
{
14+
"file": "/models/tall_600.glb",
15+
"sha256": "31ec07b07df7f59c48369c96c723b8037e51f79605bf62f0ae9c1e0a53e8c99e",
16+
"bytes": 4360
17+
},
18+
{
19+
"file": "/models/tall_600@lod1.glb",
20+
"sha256": "98a0063fc91dcbac054f5c8f88dc74f5e6f35525fc79d296c13755f6b77577e5",
21+
"bytes": 4052
22+
},
23+
{
24+
"file": "/models/wall_900.glb",
25+
"sha256": "22c1c6d9269c079be53ca662f2583c033e57cea0b87d5d6ff80a62320e76e00d",
26+
"bytes": 4364
27+
},
28+
{
29+
"file": "/models/wall_900@lod1.glb",
30+
"sha256": "de16699463f5a3eeda4e07ade0ca2e35ff34c3a6232fffde7c2178d844ca8304",
31+
"bytes": 4052
32+
}
33+
]
34+
}
4.26 KB
Binary file not shown.
3.96 KB
Binary file not shown.
4.26 KB
Binary file not shown.
3.96 KB
Binary file not shown.

0 commit comments

Comments
 (0)