hex/site/scripts/build.ts
Kit Langton 3209b5f962
site: add /hex/meetings showcase with a spoiler-free card and homepage links (#2912)
Serves the standalone Meetings showcase from public/meetings/ at
/hex/meetings/ (the Worker 301s /hex/meetings there so relative paths
resolve). `bun run import:meetings <bundle>` copies only the files the page
loads and drops session ids and the bundle's social tags; the build writes
the canonical address, Open Graph and Twitter tags for its origin and
refuses missing references or files over 25 MiB. Adds og-meetings.png
(Hex mark, "Hex Meetings", a meeting pill), Meetings links in the landing
page header and footer, and sitemap and llms.txt entries.
2026-11-26 15:41:40 -08:00

18 lines
824 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, changelog, and Meetings 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}`
await $`bun scripts/meetings.ts --mode ${mode}`