Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
76 lines (76 loc) · 3.35 KB
/
Copy pathpackage.json
File metadata and controls
76 lines (76 loc) · 3.35 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
{
"name": "@sparkjsdev/spark",
"version": "2.4.0",
"description": "An advanced 3D Gaussian Splatting renderer for THREE.js",
"homepage": "https://sparkjs.dev/",
"type": "module",
"main": "./dist/spark.cjs.js",
"module": "./dist/spark.module.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/spark.module.js",
"require": "./dist/spark.cjs.js"
}
},
"scripts": {
"assets:clean": "node scripts/clean-assets.js",
"assets:compress": "node scripts/compress-to-spz.js",
"assets:download": "node scripts/download-assets.js",
"build": "npm run build:production && npm run build:dev && npm run build:types",
"build:dev": "vite build --mode dev",
"build:production": "vite build --mode production",
"build:types": "tsc",
"build:wasm": "node rust/build_wasm.js",
"build:watch": "onchange 'src/**/*.{ts,glsl}' -- npm run build:dev",
"build-lod": "cargo run --manifest-path rust/build-lod/Cargo.toml --release --",
"clean": "rm -rf dist/ && rm -rf node_modules/ && rm -rf rust/target/ && rm -rf rust/spark-rs/pkg/ && npm run assets:clean",
"dev": "npm run build:dev && (vite --host & npm run build:watch)",
"docs": "node scripts/clean-site-files.js && node scripts/copy-site-files.js && mkdocs serve",
"format": "biome format .",
"format:fix": "biome format . --fix",
"lint": "biome check .",
"lint:fix": "biome check . --fix",
"lint:summary": "biome check --reporter=summary",
"lint:rust": "cargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warnings",
"site:build:relativeurls": "npm run build && npm run site:clean && node scripts/copy-site-files.js && mkdocs build && node scripts/rename-assets-to-static.js && node scripts/replace-urls.js",
"site:build": "npm run build && npm run site:clean && node scripts/copy-site-files.js && mkdocs build && node scripts/rename-assets-to-static.js",
"site:clean": "node scripts/clean-site-files.js && node scripts/clean-site.js",
"site:deploy": "npm run site:build && node scripts/deploy-site.js",
"site:serve": "node scripts/serve-site.js site",
"start": "npm run dev",
"test": "vitest run --reporter=dot --dir test/unit",
"test:coverage": "npm run test -- --coverage",
"test:browser": "playwright test -c test/browser/playwright.config.ts",
"test:browser:update": "playwright test -c test/browser/playwright.config.ts --update-snapshots",
"test:rust": "cargo test --locked --manifest-path rust/Cargo.toml --workspace",
"types": "tsc -p tsconfig.json --noEmit && tsc -p test/browser/tsconfig.json"
},
"repository": "sparkjsdev/spark",
"files": ["dist"],
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@playwright/test": "^1.63.0",
"@types/node": "^26.6.2",
"@types/three": "0.180.0",
"@vitest/coverage-v8": "^5.0.4",
"fflate": "^0.8.3",
"lefthook": "1.11.12",
"lil-gui": "^0.20.0",
"onchange": "7.1.0",
"spark-rs": "file:rust/spark-rs/pkg",
"stats.js": "^0.17.0",
"three": "^0.180.0",
"typescript": "^7.0.2",
"vite": "^8.3.0",
"vite-plugin-arraybuffer": "^0.1.4",
"vite-plugin-glsl": "^1.6.1",
"vitest": "^5.0.1"
},
"peerDependencies": {
"three": ">=0.180.0"
},
"keywords": ["3d", "three.js", "gsplats", "3dgs", "gaussian", "splats"]
}