7ca96d049a
Implement createModPlayer with a TDD-first ModPlayer contract (idle/loading/playing/paused/unavailable), wired into App and TrackerPanel. Uses chiptune3@0.8.7, loaded lazily via a deep import (the package ships no main/exports field). Adds two Vite fixes needed for the nested worklet asset to actually load: copy libopenmpt.worklet.js next to the built worklet chunk, and exclude chiptune3 from dep pre-bundling so dev mode resolves the same sibling file. Ships public/music/ride.mod: "11th-hour" by TDK, CC BY 4.0, from The Mod Archive (modarchive.org, module ID 67104). Credited in the HUD scroller text.
34 lines
753 B
JSON
34 lines
753 B
JSON
{
|
|
"name": "clement-saillant-cc",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"preview": "vite preview --port 4173",
|
|
"test": "vitest run",
|
|
"e2e": "playwright test"
|
|
},
|
|
"dependencies": {
|
|
"@react-three/drei": "^10",
|
|
"@react-three/fiber": "^9",
|
|
"chiptune3": "0.8.7",
|
|
"react": "^19",
|
|
"react-dom": "^19",
|
|
"three": "^0.177.0",
|
|
"zustand": "^5"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.53",
|
|
"@types/node": "^26.1.1",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@types/three": "^0.177.0",
|
|
"@vitejs/plugin-react": "^4",
|
|
"typescript": "^5.8",
|
|
"vite": "^7",
|
|
"vitest": "^3"
|
|
}
|
|
}
|