some stuff

This commit is contained in:
john 2024-12-03 17:10:40 +01:00
parent 08ad294d46
commit 6cbf15b783
11 changed files with 165 additions and 5 deletions

23
build.ts Normal file
View file

@ -0,0 +1,23 @@
import { startServer } from "./server.ts";
async function main() {
const server = startServer("localhost", 6969);
const chromiumCmd = new Deno.Command("chromium", {
args: [
"--headless",
"--print-to-pdf=./cv.pdf",
"--no-pdf-header-footer",
"http://localhost:6969/cv.html"
]
})
const process = chromiumCmd.spawn()
await process.status
await server.shutdown()
}
if (import.meta.main) {
await main();
}