hex/site/scripts/build.ts
Kit Langton 012bdbbebe
Site: /hex/changelog, the stable changelog built from docs/releases (#2884)
Every docs/releases/<X.Y.Z>.md becomes an entry on one static page, newest
first, with its anchor, GitHub release link, sections, and callouts. The
landing page's footer and /hex/dev link it, and it is in the sitemap and
llms.txt.

Docs after 3.5.0: drop the lifted release freeze, describe the release
thread cadence in docs/releasing.md, and say README's download links are
version-less.
2026-11-25 23:06:52 -08:00

17 lines
766 B
TypeScript

#!/usr/bin/env bun
// `bun run build [--mode dev]`: release data from the release service, typecheck, client build
// (Cloudflare Build Output), SSR build, prerender, then the Labs, iPhone, and changelog pages.
import { parseArgs } from "node:util"
import { $ } from "bun"
const { values } = parseArgs({ options: { mode: { type: "string", default: "production" } } })
const mode = values.mode
await $`bun scripts/release-data.ts --mode ${mode}`
await $`tsc -b`
await $`vite build --mode ${mode}`
await $`vite build --mode ${mode} --ssr src/prerender.tsx --outDir dist-server`
await $`bun scripts/prerender.ts --mode ${mode}`
await $`bun scripts/labs.ts --mode ${mode}`
await $`bun scripts/iphone.ts --mode ${mode}`
await $`bun scripts/changelog.ts --mode ${mode}`