mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* labs: card titles, lines and OSes in the registry, exported to site/src/labs.json (t1560) * site: a page and a social card for every lab, generated from the registry (t1560) * labs: the two newest labs on the website (t1560)
15 lines
648 B
TypeScript
15 lines
648 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 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}`
|