From 32d03e86bf91141aa6809e9b118b9063ae6ae320 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Mon, 31 Aug 2020 16:45:24 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20compact=20main=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/round/src/index.ts | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/packages/round/src/index.ts b/packages/round/src/index.ts index 3aa4acc4..b8240b3b 100644 --- a/packages/round/src/index.ts +++ b/packages/round/src/index.ts @@ -1,33 +1,16 @@ -import chalk from "chalk"; -import { renderCursors, spinner } from "common"; +// import { renderCursors, spinner } from "common"; import { generateConfigs } from "./utils/schema"; -import { colorSchemes } from "./color"; -import { bitmapsPath } from "./config"; +import * as colorsConfig from "./color"; const main = async () => { - const prefix = "Bibata-Round"; + const themeName = "Bibata-Round"; - const configs = generateConfigs(colorSchemes, prefix); + const configs = generateConfigs(colorsConfig.colorSchemes, themeName); - try { - for (let [schema] of Object.entries(configs)) { - spinner.text = `Generating ${chalk.magentaBright( - `${prefix}-${schema}` - )} bitmaps ...`; - spinner.start(); + console.log(configs); - await renderCursors(configs[schema]); - - spinner.succeed(); - } - console.log(`🎉 Bitmaps stored at ${chalk.greenBright(bitmapsPath)}`); - } catch (error) { - spinner.fail(); - console.error(error); - } finally { - process.exit(0); - } + process.exit(0); }; main();