← Public packages
@kentcdodds/starsnake
Starsnake: steer a snake-like ship Asteroids style, grow a crystal tail, and spend crystals on towers to defend your core. Mobile friendly.
Files
// Writes dist/index.html (the page as served at the root of a host) for local file:// tests and art capture.
import { mkdirSync, writeFileSync } from 'node:fs'
import { renderPage } from '../app/page.ts'
mkdirSync('dist', { recursive: true })
writeFileSync('dist/index.html', renderPage({ origin: 'http://localhost', appBase: '', assetBase: '/a' }))
console.log('dist/index.html written')