add build.ts
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user