1// deno task dev: print the copyable prompt, then start the Fresh/Vite dev2// server on 127.0.0.1:8000.3const URL_ = "http://127.0.0.1:8000";45import { promptFor } from "./lib/prompt.ts";67export function prompt(): string {8 return promptFor(URL_);9}1011if (import.meta.main) {12 console.log(prompt());13 const cmd = new Deno.Command(Deno.execPath(), {14 args: ["run", "-A", "npm:vite", ...Deno.args],15 stdin: "inherit",16 stdout: "inherit",17 stderr: "inherit",18 });19 const child = cmd.spawn();20 const status = await child.status;21 Deno.exit(status.code);22}