diff --git a/.gitignore b/.gitignore index 2971a0b..616a9e3 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ next-env.d.ts # production /build +/dist # misc .DS_Store diff --git a/dist/cli.js b/dist/cli.js deleted file mode 100644 index 9a49720..0000000 --- a/dist/cli.js +++ /dev/null @@ -1,21 +0,0 @@ -#! /usr/bin/env node -import { execa } from "execa"; -import open from "open"; -import ora from "ora"; -const serverSpinner = ora("Launching UI...").start(); -try { - const server = execa("npm", ["start"]); - await new Promise(async (res, rej) => { - server.stdout?.on("data", async (data) => { - const str = data.toString(); - if (str.includes("ready - started server")) { - const pageUrl = str.split("url: ").pop()?.trim() ?? ""; - await open(pageUrl); - serverSpinner.succeed("UI has been launched!"); - } - }); - }); -} -catch (e) { - serverSpinner.fail("Failed to launch UI!"); -}