26b23a8f09
- News card "3 min read" → computed from our own gist (~200 wpm, floor 1). We summarize, so it's honestly ~"1 min read" — the good news in about a minute. - Generalized the build-time head patch (patch-play-head → patch-static-heads): now also rewrites build/word.html, quote.html, onthisday.html so each ships its own <title>/description/canonical/OG/Twitter tags instead of the homepage head + canonical="/". Non-JS scrapers and canonical dedup are correct before these pages are ever un-noindexed. Same fail-loud guard as before. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
26 lines
587 B
JSON
26 lines
587 B
JSON
{
|
|
"name": "goodnews-web",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite dev --host",
|
|
"build": "vite build",
|
|
"postbuild": "node scripts/patch-static-heads.mjs",
|
|
"preview": "vite preview",
|
|
"test": "vitest run"
|
|
},
|
|
"devDependencies": {
|
|
"@sveltejs/adapter-static": "^3.0.6",
|
|
"@sveltejs/kit": "^2.8.0",
|
|
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
|
"an-array-of-english-words": "^2.0.0",
|
|
"svelte": "^5.1.0",
|
|
"vite": "^6.0.0",
|
|
"vitest": "^4.1.8"
|
|
},
|
|
"dependencies": {
|
|
"three": "^0.184.0"
|
|
}
|
|
}
|