Files
tilt/package.json
T
ryanfitzpatrickio 7a196b6571 Prepare Cloudflare Workers/Pages deploy for the static front-end.
Add wrangler assets config, multi-page Vite build (game + studio),
cache/WASM headers, and deploy scripts so `npm run deploy` publishes dist.
2026-08-03 10:33:24 -05:00

31 lines
1.1 KiB
JSON

{
"name": "tilt",
"version": "0.0.1",
"private": true,
"type": "module",
"description": "Physics-driven hockey. Spike 1: three agents skating on ice.",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"test": "node test/skaterSim.mjs && node test/rink.mjs && node test/ai.mjs && node test/pose.mjs && node test/input.mjs && node test/physics.mjs && node test/hits.mjs && node test/puck.mjs && node test/goalie.mjs && node test/shootout.mjs",
"capture": "node tools/capture.mjs",
"img2mesh": "node tools/img2mesh.mjs",
"img2mesh:player": "node tools/img2mesh.mjs --subject player",
"img2mesh:goalie": "node tools/img2mesh.mjs --subject goalie",
"deploy": "npm run build && wrangler deploy",
"deploy:dry": "npm run build && wrangler deploy --dry-run",
"pages:deploy": "npm run build && wrangler pages deploy dist --project-name=tilt",
"cf:whoami": "wrangler whoami"
},
"dependencies": {
"box3d.js": "^0.0.2",
"three": "^0.185.1"
},
"devDependencies": {
"puppeteer-core": "^25.4.0",
"vite": "^8.1.5",
"wrangler": "^4.118.0"
}
}