11/**
22 * Renders the /conf/conference-kit/ banners as high-res PNGs and packages
3- * them into public/conference-kit/banners .zip. Expects a dev/prod server to
3+ * them into public/conference-kit/conference-kit .zip. Expects a dev/prod server to
44 * already be running on $URL (default http://localhost:3000) — invoke after
55 * `pnpm dev` is up, or against a `pnpm start` instance. Override SCALE for
66 * print-grade output (e.g. SCALE=6 → 3600×8472 ≈ 100 dpi at 850×2000 mm).
@@ -48,7 +48,7 @@ async function main() {
4848 } )
4949 const page = await context . newPage ( )
5050
51- console . log ( `[render-banners ] loading ${ PAGE } ` )
51+ console . log ( `[conference-kit ] loading ${ PAGE } ` )
5252 await page . goto ( PAGE , { waitUntil : "networkidle" } )
5353 await page . evaluate ( ( ) => document . fonts . ready )
5454
@@ -70,15 +70,15 @@ async function main() {
7070
7171 await browser . close ( )
7272
73- const zipPath = path . join ( PUBLIC_DIR , "banners .zip" )
73+ const zipPath = path . join ( PUBLIC_DIR , "conference-kit .zip" )
7474 await rm ( zipPath , { force : true } )
7575 await exec ( "zip" , [
7676 "-j" ,
7777 zipPath ,
7878 ...BANNERS . map ( b => path . join ( tmpDir , `${ b . slug } .png` ) ) ,
7979 ] )
8080 console . log (
81- `[render-banners ] wrote ${ path . relative ( process . cwd ( ) , zipPath ) } ` ,
81+ `[conference-kit ] wrote ${ path . relative ( process . cwd ( ) , zipPath ) } ` ,
8282 )
8383 } finally {
8484 await rm ( tmpDir , { recursive : true , force : true } )
0 commit comments