mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
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.
17 lines
766 B
TypeScript
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}`
|