From 39ab834e86d5344a12dffb000373651147d5da6c Mon Sep 17 00:00:00 2001 From: PiotrekPKP Date: Sat, 11 Mar 2023 17:03:26 +0100 Subject: [PATCH] fix: fix gitignore --- .gitignore | 1 + dist/cli.js | 21 --------------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 dist/cli.js 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!"); -}