some stuff
This commit is contained in:
parent
08ad294d46
commit
6cbf15b783
11 changed files with 165 additions and 5 deletions
23
build.ts
Normal file
23
build.ts
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue