Files
andwati.com/package.json
T
andwati 1b7c4039e3 Migrate legacy Zola posts into content/writings/ (additive)
scripts/migrate-posts-to-writings.mjs converts all 20 posts under
content/posts/ into the new writings schema — normalizes dates to
bare TOML local-dates, converts the one unambiguous Zola shortcode in
use (youtube embeds) to a plain <iframe>, and strips the now-meaningless
{% raw %}/{% endraw %} escape tags. content/posts/ itself is untouched;
this only adds content/writings/*.

Also generates 301 redirects from the old /posts/<slug>/ URLs to the
new /writings/<slug>/ ones into sws.toml, inside marker comments so
re-running the script regenerates that block idempotently instead of
duplicating it.

Two posts (from-c-to-machine-code, self-hosting-gitea-and-mirroring-github)
use note/tip/warning/danger callout shortcodes that have no Astro
equivalent yet — flagged by the script rather than guessed at, since
that needs a real component once the design system exists.

Verified: astro check clean, full site builds (80 pages, all real
migrated posts render), redirect generation confirmed idempotent
across repeated runs.
2026-08-30 19:10:53 +03:00

24 lines
725 B
JSON

{
"name": "andwati-com",
"private": true,
"type": "module",
"scripts": {
"dev:site": "pnpm --filter site dev",
"dev:cms": "pnpm --filter cms develop",
"build:site": "pnpm --filter site build",
"build:cms": "pnpm --filter cms build",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"legacy:generate:llms": "node scripts/generate-llms.mjs",
"legacy:generate:og": "node scripts/generate-og-images.mjs",
"legacy:build": "npm run legacy:generate:llms && npm run legacy:generate:og && zola build"
},
"devDependencies": {
"@biomejs/biome": "^2.5.11",
"@resvg/resvg-js": "^2.6.2",
"satori": "^0.29.0",
"smol-toml": "^1.8.0",
"wawoff2": "^2.0.1"
}
}