add build.ts

This commit is contained in:
2026-02-08 23:28:09 +08:00
parent 1a020f0d36
commit 2d735d9103
4 changed files with 172 additions and 3 deletions

View File

@@ -1,10 +1,22 @@
#!/usr/bin/env runts -- --allow-import
#!/usr/bin/env runts -- --allow-all
import {log} from "../libraries/deno-commons-mod.ts";
import {log, term} from "../libraries/deno-commons-mod.ts";
// deno bundle --allow-import hello_world.ts -o helloworld-bundle-2.bundle.ts
async function main() {
log.info("Hello World!");
log.success("Hello World!");
console.log(term.auto("\n[bg_white][black]Message:\n"));
console.log(
term.auto(
"[[[[bg_green][bold][red] MESSAGE [///] [green][bold]Hello[//] [red]world[/]. [under] under [/] [bold]BOLD[/]]]]",
),
);
console.log(term.auto("\n[bg_white][black]Prints as:\n"));
console.log(
term.auto(
"[bg_green][bold][red] MESSAGE [///] [green][bold]Hello[//] [red]world[/]. [under] under [/] [bold]BOLD[/]",
),
);
}
main().catch(console.error);