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