able-baker/run.tsx

16 lines
302 B
TypeScript
Raw Normal View History

2023-07-30 09:16:17 -04:00
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");
}