site/index.html (900 KB of HTML, CSS and JS in one file) becomes src/: a shell (src/index.html), styles/ and game/, concatenated in path order by scripts/lib/page.js. The assembled page is byte-identical to the old file, so load time and in-game performance are unchanged. - scripts/build.js replaces build.sh (same env vars, same output) - npm run dev: a zero-dependency dev server that assembles on every request - tests assemble the page in memory; npm test runs every tests/*.test.js - perf-bench takes --base-ref to build a git ref's page - scripts/legacy/split-index-html.js is the splitter, kept for older branches
28 lines
751 B
JSON
28 lines
751 B
JSON
{
|
|
"name": "seriesoftubes",
|
|
"version": "1.33.0",
|
|
"description": "A cartoon browser game about building the internet.",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"homepage": "https://seriesoftub.es/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/fjaeckel/seriesoftubes.git"
|
|
},
|
|
"scripts": {
|
|
"test": "node scripts/test.js",
|
|
"build": "node scripts/build.js",
|
|
"i18n:check": "node scripts/i18n-check.js",
|
|
"dev": "node scripts/dev.js",
|
|
"page": "node scripts/lib/page.js",
|
|
"serve": "npm run build && npx --yes serve@14.2.4 _site",
|
|
"perf": "node scripts/perf-bench.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"devDependencies": {
|
|
"jsdom": "24.1.3",
|
|
"playwright-core": "1.56.0"
|
|
}
|
|
}
|