Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
202 lines (202 loc) · 16.2 KB
/
Copy pathpackage.json
File metadata and controls
202 lines (202 loc) · 16.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"name": "hilo3d",
"version": "2.0.0-alpha.9",
"description": "A TypeScript-first 3D engine with explicit WebGL 2 and WebGPU backends.",
"type": "module",
"types": "./dist/Hilo3d.d.ts",
"exports": {
".": {
"types": "./dist/Hilo3d.d.ts",
"import": "./dist/Hilo3d.js",
"default": "./dist/Hilo3d.js"
},
"./package.json": "./package.json"
},
"files": [
"dist/",
"CHANGELOG.md",
"LICENSE",
"README.md",
"README_ZH.md"
],
"workspaces": [
"addon-particle",
"addon-physics",
"addon-live2d",
"addon-assets",
"addon-audio"
],
"scripts": {
"clean": "rimraf .cache addon-particle/.cache addon-particle/dist addon-physics/.cache addon-physics/dist coverage dist dist-examples docs playwright-report reports site test-results addon-live2d/.cache addon-live2d/dist addon-assets/.cache addon-assets/dist addon-audio/.cache addon-audio/dist dist-editor dist-player",
"clean:build": "rimraf .cache/types .cache/tsconfig.lib.tsbuildinfo addon-particle/.cache addon-particle/dist addon-physics/.cache addon-physics/dist dist addon-live2d/.cache addon-live2d/dist addon-assets/.cache addon-assets/dist addon-audio/.cache addon-audio/dist",
"dev": "vite --host 0.0.0.0",
"examples:dev": "vite --config vite.examples.config.ts --host 0.0.0.0",
"examples:serve": "vite --config vite.examples.config.ts --host 0.0.0.0 --port 4173 --strictPort --open /examples/index.html",
"examples:build": "vite build --config vite.examples.config.ts",
"examples:test": "npm run test:ui",
"build": "npm run clean:build && npm run build:js && npm run build:types && npm run addon:build",
"build:js": "vite build",
"build:types": "tsc -p tsconfig.lib.json && jiti scripts/build-types.ts",
"addon:build": "npm run build --workspaces --if-present",
"addon:typecheck": "npm run typecheck --workspaces --if-present",
"check:modernity": "jiti scripts/check-modernity.ts",
"typecheck": "tsc -b --force --pretty",
"typecheck:ci": "tsc -b --pretty",
"typecheck:clean": "tsc -b --clean",
"lint": "npm run build:types && npm run addon:build && npm run lint:built",
"lint:built": "eslint . --max-warnings 0",
"lint:fix": "npm run build:types && npm run addon:build && npm run lint:built -- --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"test": "npm run test:unit",
"test:unit": "vitest run",
"test:skill": "jiti scripts/check-hilo3d-skill.ts",
"test:rhi": "vitest run --config vitest.rhi.config.ts test/spec/rhi/portable && vitest run --config vitest.rhi-native.config.ts test/spec/rhi/portable/WebGPUBackend.native.test.ts",
"test:rhi-benchmark-contract": "vitest run --config test/performance/vitest.config.ts",
"test:rhi-benchmark-smoke": "jiti scripts/performance/smoke-rhi-production-fixture.ts",
"test:rhi-benchmark-smoke:ci": "npm run test:rhi-benchmark-smoke -- --backend=webgl2",
"benchmark:rhi:audit-environment": "jiti scripts/performance/audit-rhi-benchmark-environment.ts",
"benchmark:rhi:preflight": "jiti scripts/performance/rhi-phase0-preflight.ts",
"benchmark:rhi:collect": "jiti scripts/performance/collect-rhi-benchmark.ts",
"benchmark:rhi:summarize": "jiti scripts/performance/summarize-rhi-benchmark.ts",
"benchmark:rhi:verify": "jiti scripts/performance/verify-rhi-baseline.ts",
"benchmark:rhi:freeze": "jiti scripts/performance/freeze-rhi-baseline.ts",
"benchmark:rhi:report": "jiti scripts/performance/render-rhi-benchmark-report.ts",
"test:render:architecture": "vitest run test/spec/renderer/Renderer.test.ts test/spec/renderer/RenderPerformanceArchitecture.test.ts test/spec/rhi/RHIArchitecture.test.ts test/spec/rhi/portable/RHIArchitecture.test.ts test/spec/rhi/portable/WebGL2Backend.test.ts test/spec/rhi/portable/WebGPUBackend.test.ts",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"test:ui:contract": "vitest run --config test/ui/vitest-contract.config.ts",
"test:ui": "npm run test:ui:contract && playwright test test/ui/examples.spec.ts test/ui/animation.spec.ts test/ui/live2d.spec.ts test/ui/post-processing.spec.ts test/ui/scriptable-pipeline.spec.ts test/ui/runtime-parity.spec.ts test/ui/mat1-materials.spec.ts test/ui/mat1-soft-matter.spec.ts test/ui/physics.spec.ts test/ui/editor.spec.ts test/ui/editor-authoring.spec.ts test/ui/editor-components.spec.ts --project=chromium",
"test:ui:webgl2": "npm run test:ui:contract && playwright test test/ui/examples.spec.ts test/ui/animation.spec.ts test/ui/live2d.spec.ts test/ui/post-processing.spec.ts test/ui/scriptable-pipeline.spec.ts test/ui/runtime-parity.spec.ts test/ui/mat1-materials.spec.ts test/ui/mat1-soft-matter.spec.ts test/ui/physics.spec.ts test/ui/editor.spec.ts test/ui/editor-authoring.spec.ts test/ui/editor-components.spec.ts --project=chromium --grep @webgl2",
"test:ui:webgl2:ci": "jiti scripts/run-ui-ci.ts",
"test:ui:webgpu": "npm run test:ui:contract && playwright test test/ui/examples.spec.ts test/ui/animation.spec.ts test/ui/live2d.spec.ts test/ui/post-processing.spec.ts test/ui/scriptable-pipeline.spec.ts test/ui/runtime-parity.spec.ts test/ui/mat1-materials.spec.ts test/ui/mat1-soft-matter.spec.ts test/ui/physics.spec.ts test/ui/editor.spec.ts test/ui/editor-authoring.spec.ts test/ui/editor-components.spec.ts --project=chromium --grep @webgpu",
"test:webgpu": "playwright test test/ui/webgpu.spec.ts test/ui/compute-effects.spec.ts test/ui/compute-particles.spec.ts test/ui/compute-eclipse-shrine.spec.ts test/ui/compute-raytracing.spec.ts test/ui/screen-space-reflections.spec.ts test/ui/clustered-forward-plus-scale.spec.ts test/ui/shadow-residency-sanctum.spec.ts test/ui/dynamic-global-illumination.spec.ts test/ui/rendering-production.spec.ts test/ui/rain-tea-garden.spec.ts test/ui/meshlet-streaming.spec.ts test/ui/meshlet-strata.spec.ts --project=chromium",
"test:webgpu:native": "playwright test test/ui/native-webgpu.spec.ts test/ui/clustered-forward-plus-scale.spec.ts test/ui/clustered-forward-plus-lumen.spec.ts test/ui/volumetric-lighting.spec.ts test/ui/stormfront-observatory.spec.ts test/ui/dynamic-global-illumination.spec.ts test/ui/rendering-production.spec.ts test/ui/mat1-materials.spec.ts test/ui/mat1-soft-matter.spec.ts test/ui/rain-tea-garden.spec.ts test/ui/meshlet-streaming.spec.ts test/ui/meshlet-strata.spec.ts --project=chromium-native-webgpu",
"test:gpu-scene-scale": "playwright test test/ui/clustered-forward-plus-scale.spec.ts --project=chromium",
"test:visual": "playwright test test/ui/visual.spec.ts --project=chromium --grep @visual",
"test:visual:webgl2": "playwright test test/ui/visual.spec.ts --project=chromium --grep \"through webgl2\"",
"test:browser": "npm run test:webgpu && npm run test:ui && npm run test:visual",
"test:browser:ci": "npm run test:ui:webgl2:ci",
"test:types": "tsc -p test/types/tsconfig.bundler.json && tsc -p test/types/tsconfig.nodenext.json",
"test:package": "npm run build && npm run test:package:built",
"test:package:built": "publint && attw --pack . --profile esm-only && jiti scripts/test-package.ts",
"test:addon-package": "publint addon-physics && attw --pack addon-physics --profile esm-only && npm pack --dry-run --ignore-scripts --workspace=@hilo/addon-physics",
"test:addon-particle-package": "publint addon-particle && attw --pack addon-particle --profile esm-only && npm pack --dry-run --ignore-scripts --workspace=@hilo/addon-particle",
"api:update": "npm run build:types && npm run addon:build && npm run api:update:built",
"api:update:built": "api-extractor run --local --typescript-compiler-folder node_modules/typescript && api-extractor run --local --config addon-particle/api-extractor.json --typescript-compiler-folder node_modules/typescript && api-extractor run --local --config addon-physics/api-extractor.json --typescript-compiler-folder node_modules/typescript && api-extractor run --local --config addon-physics/api-extractor.rapier2d.json --typescript-compiler-folder node_modules/typescript && api-extractor run --local --config addon-physics/api-extractor.rapier3d.json --typescript-compiler-folder node_modules/typescript && api-extractor run --local --config addon-live2d/api-extractor.json --typescript-compiler-folder node_modules/typescript && api-extractor run --local --config addon-live2d/api-extractor.cubism.json --typescript-compiler-folder node_modules/typescript && api-extractor run --local --config addon-assets/api-extractor.json --typescript-compiler-folder node_modules/typescript && api-extractor run --local --config addon-audio/api-extractor.json --typescript-compiler-folder node_modules/typescript",
"api:check": "npm run build:types && npm run addon:build && npm run api:check:built",
"api:check:built": "api-extractor run --typescript-compiler-folder node_modules/typescript && api-extractor run --config addon-particle/api-extractor.json --typescript-compiler-folder node_modules/typescript && api-extractor run --config addon-physics/api-extractor.json --typescript-compiler-folder node_modules/typescript && api-extractor run --config addon-physics/api-extractor.rapier2d.json --typescript-compiler-folder node_modules/typescript && api-extractor run --config addon-physics/api-extractor.rapier3d.json --typescript-compiler-folder node_modules/typescript && api-extractor run --config addon-live2d/api-extractor.json --typescript-compiler-folder node_modules/typescript && api-extractor run --config addon-live2d/api-extractor.cubism.json --typescript-compiler-folder node_modules/typescript && api-extractor run --config addon-assets/api-extractor.json --typescript-compiler-folder node_modules/typescript && api-extractor run --config addon-audio/api-extractor.json --typescript-compiler-folder node_modules/typescript",
"docs:build": "npm run build:types && npm run docs:build:built",
"docs:build:built": "npm run docs:check:sources && typedoc",
"docs:check": "npm run build:types && npm run docs:check:built",
"docs:check:built": "npm run docs:check:sources && typedoc --emit none",
"site:build": "npm run api:check && npm run site:build:built",
"site:build:built": "npm run docs:build:built && npm run examples:build && npm run editor:build && jiti scripts/build-site.ts && npm run site:check:links",
"site:check:links": "jiti scripts/check-site-links.ts",
"pack:check": "npm pack --dry-run --ignore-scripts",
"release:tag:check": "jiti scripts/release-git-tag.ts check",
"release:tag:push": "jiti scripts/release-git-tag.ts push",
"release:tag:verify": "jiti scripts/release-git-tag.ts verify",
"release:versions:check": "jiti scripts/release-package-set.ts",
"publish:check": "npm run check:modernity && npm run release:tag:verify",
"release:check": "npm run validate",
"validate": "npm run clean && npm run check:modernity && npm run format:check && npm run lint && npm run typecheck && npm run test:skill && npm run test:coverage && npm run test:rhi && npm run test:surface:render && npm run test:editor:render && npm run test:editor:server && npm run test:rhi-benchmark-contract && npm run build && npm run editor:build && npm run test:types && npm run test:browser && npm run site:build:built && npm run test:editor:pages && npm run test:player && npm run docs:check:built && npm run api:check:built && npm run test:package:built && npm run test:addon-package && npm run test:addon-particle-package && npm run test:live2d-runtime-build && npm run test:addon-live2d-package && npm run test:addon-assets-package && npm run test:addon-audio-package && npm run pack:check",
"validate:ci": "npm run clean && npm run check:modernity && npm run format:check && npm run lint && npm run typecheck:ci && npm run test:skill && npm run test:rhi-benchmark-contract && npm run test:coverage && npm run test:rhi && npm run test:surface:render && npm run test:editor:render && npm run test:editor:server && npm run build && npm run editor:build && npm run test:types && npm run test:browser:ci && npm run site:build:built && npm run test:editor:pages && npm run test:player && npm run docs:check:built && npm run api:check:built && npm run test:package:built && npm run test:addon-package && npm run test:addon-particle-package && npm run test:live2d-runtime-build && npm run test:addon-live2d-package && npm run test:addon-assets-package && npm run test:addon-audio-package && npm run pack:check",
"prepack": "npm run build",
"prepublishOnly": "npm run publish:check",
"benchmark:ddgi:collect": "jiti scripts/performance/collect-ddgi-evidence.ts",
"benchmark:srp:collect": "jiti scripts/performance/collect-srp-benchmark.ts",
"benchmark:srp:compare": "jiti scripts/performance/compare-srp-benchmark.ts",
"docs:check:sources": "jiti scripts/check-documentation.ts",
"docs:sync": "jiti scripts/check-documentation.ts --write",
"test:addon-live2d-package": "publint addon-live2d && attw --pack addon-live2d --profile esm-only && npm pack --dry-run --ignore-scripts --workspace=@hilo/addon-live2d",
"test:live2d-runtime-build": "jiti addon-live2d/test/build-runtime.test.ts",
"test:addon-assets-package": "publint addon-assets && attw --pack addon-assets --profile esm-only && npm pack --dry-run --ignore-scripts --workspace=@hilo/addon-assets",
"test:addon-audio-package": "publint addon-audio && attw --pack addon-audio --profile esm-only && npm pack --dry-run --ignore-scripts --workspace=@hilo/addon-audio",
"test:audio": "vitest run test/spec/audio",
"editor:dev": "vite --config vite.editor.config.ts",
"editor:build": "npm run player:build && vite build --config vite.editor.config.ts",
"test:editor": "vitest run test/spec/editor && npm run test:editor:render && npm run test:editor:server && playwright test test/ui/editor.spec.ts test/ui/editor-authoring.spec.ts test/ui/editor-components.spec.ts --project=chromium && npm run editor:build && npm run test:player",
"editor:server": "jiti editor/server/cli.ts",
"test:editor:server": "vitest run --config vitest.editor-node.config.ts",
"test:editor:render": "vitest run --config vitest.editor-render.config.ts",
"test:editor:pages": "playwright test --config playwright.editor-pages.config.ts",
"player:build": "vite build --config vite.player.config.ts",
"test:player": "playwright test --config playwright.player.config.ts",
"test:surface:render": "vitest run --config vitest.surface-render.config.ts",
"geometry:cook": "jiti scripts/geometry/cook-meshlet.ts",
"geometry:fixture": "jiti scripts/geometry/build-meshlet-fixture.ts",
"test:meshlets": "playwright test test/ui/meshlet-streaming.spec.ts --project=chromium",
"strata:build": "jiti scripts/geometry/build-strata.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hiloteam/Hilo3d.git"
},
"keywords": [
"hilo",
"3d",
"webgl",
"webgl2",
"webgpu",
"typescript"
],
"author": "06wj",
"license": "MIT",
"bugs": {
"url": "https://github.com/hiloteam/Hilo3d/issues"
},
"homepage": "https://hilo3d.js.org",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": ">=20.19.0"
},
"packageManager": "npm@10.9.4",
"devEngines": {
"runtime": {
"name": "node",
"version": ">=20.19.0",
"onFail": "error"
},
"packageManager": {
"name": "npm",
"onFail": "error"
}
},
"dependencies": {
"gl-matrix": "^3.4.4",
"web-naga": "1.0.1"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.5",
"@dimforge/rapier2d-compat": "0.20.0",
"@dimforge/rapier3d-compat": "0.20.0",
"@eslint/js": "^10.0.1",
"@microsoft/api-extractor": "^7.58.11",
"@playwright/test": "^1.61.1",
"@types/node": "^20.19.43",
"@types/pngjs": "^6.0.5",
"@types/webxr": "0.5.24",
"@vitest/browser-playwright": "^4.1.10",
"@vitest/coverage-v8": "^4.1.10",
"eslint": "^10.7.0",
"eslint-config-prettier": "^10.1.8",
"jiti": "^2.7.0",
"meshoptimizer": "1.3.0",
"playwright": "^1.61.1",
"pngjs": "^7.0.0",
"prettier": "^3.9.5",
"publint": "^0.3.21",
"rimraf": "^6.1.3",
"rollup": "^4.62.2",
"rollup-plugin-dts": "^6.4.1",
"typedoc": "^0.28.20",
"typescript": "^6.0.3",
"typescript-eslint": "^8.64.0",
"vite": "^8.1.5",
"vitest": "^4.1.10"
}
}