From 994e0114d76ae19768d5c303874a968cf6369fd0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 7 Sep 2023 22:27:48 +0900 Subject: meta: migrate to monorepo --- vhosts/blog/nuldoc-src/main.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 vhosts/blog/nuldoc-src/main.ts (limited to 'vhosts/blog/nuldoc-src/main.ts') diff --git a/vhosts/blog/nuldoc-src/main.ts b/vhosts/blog/nuldoc-src/main.ts new file mode 100644 index 00000000..8598d80c --- /dev/null +++ b/vhosts/blog/nuldoc-src/main.ts @@ -0,0 +1,17 @@ +import { runBuildCommand } from "./commands/build.ts"; +import { runNewCommand } from "./commands/new.ts"; +import { runServeCommand } from "./commands/serve.ts"; +import { config } from "./config.ts"; + +if (import.meta.main) { + const command = Deno.args[0] ?? "build"; + if (command === "build") { + await runBuildCommand(config); + } else if (command === "new") { + runNewCommand(config); + } else if (command === "serve") { + runServeCommand(config); + } else { + console.error(`Unknown command: ${command}`); + } +} -- cgit v1.2.3-70-g09d2