// Builds the static site into dist/: the page, its stylesheet, the game's modules and the // vendored three.js, as they are. No bundler. import { cpSync, mkdirSync, rmSync } from "node:fs"; rmSync("dist", { recursive: true, force: true }); mkdirSync("dist"); for (const file of ["index.html", "style.css"]) cpSync(file, `dist/${file}`); for (const dir of ["src", "vendor"]) cpSync(dir, `dist/${dir}`, { recursive: true }); console.log("built dist/");