17 lines
425 B
TypeScript
17 lines
425 B
TypeScript
import { parseArgs } from "jsr:@std/cli/parse-args";
|
|
import {HTML, Save, Load, Root} from "./assemble_files.ts";
|
|
|
|
const args = parseArgs(Deno.args);
|
|
if(args.html)
|
|
{
|
|
Save(HTML, "index.html");
|
|
}
|
|
else
|
|
{
|
|
const config = await Load("deno.json");
|
|
const json = JSON.parse(config);
|
|
json.imports["GALE@HOST/"] = Root;
|
|
Save(JSON.stringify(json, null, "\t"), "deno.json");
|
|
Save(await Load("app.js"), "app.js");
|
|
}
|