feat: init dev command

This commit is contained in:
dswbx
2025-12-03 17:46:02 +01:00
parent 959dee013e
commit 6bbc922710
22 changed files with 427 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
import type { CliCommand } from "cli/types";
import { withConfigOptions, type WithConfigOptions } from "cli/utils/options";
import * as utils from "./utils";
import { $console } from "core/utils";
import { Project } from "./lib/Project";
export const dev: CliCommand = (program) =>
withConfigOptions(program.command("dev")).description("dev server").action(action);
async function action(options: WithConfigOptions<{}>) {
const project = new Project({
templatePath: utils.TEMPLATE_PATH,
});
await project.init();
await project.listen();
}