able-baker/run.tsx

16 lines
302 B
TypeScript

import * as Serve from "./run-serve.tsx";
export default Serve.Configure;
Deno.args.forEach(arg=>
{
if(arg.startsWith("--"))
{
const kvp = arg.substring(2).split("=");
Deno.env.set(kvp[0], kvp[1] || "true");
}
});
if(Deno.env.get("dev"))
{
import("./run-local.tsx");
}