From 44b1eb8b87047b917fb3b2a4bc3b38bf8b371ba0 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 1 Sep 2023 18:14:08 -0700 Subject: [PATCH] chore: :hammer: build greet js -> sh --- package.json | 4 ++-- scripts/build-greet.js | 17 ----------------- scripts/build-greet.sh | 13 +++++++++++++ 3 files changed, 15 insertions(+), 19 deletions(-) delete mode 100644 scripts/build-greet.js create mode 100755 scripts/build-greet.sh diff --git a/package.json b/package.json index 5ae335126e..2a5947ff98 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "packageManager": "pnpm@8.7.1", "private": true, "scripts": { - "rebuild": "pnpm run clean && pnpm node ./scripts/build-greet.js && pnpm -r --parallel run build && pnpm run gulp", - "build": "pnpm node ./scripts/build-greet.js && pnpm -r --parallel run build && pnpm run gulp", + "rebuild": "pnpm run clean && ./scripts/build-greet.sh && pnpm -r --parallel run build && pnpm run gulp", + "build": "./scripts/build-greet.sh && pnpm -r --parallel run build && pnpm run gulp", "start": "pnpm --filter backend run start", "start:test": "pnpm --filter backend run start:test", "init": "pnpm run migrate", diff --git a/scripts/build-greet.js b/scripts/build-greet.js deleted file mode 100644 index 6732330e99..0000000000 --- a/scripts/build-greet.js +++ /dev/null @@ -1,17 +0,0 @@ -const chalk = require("chalk"); - -const themeColor = chalk.hex("#31748f"); -console.log(themeColor(" ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ◯ ")); -console.log(themeColor("█ █ █ ▄ █ █ █ █ █ █ █ █ █ ○ ▄ ▄")); -console.log(themeColor("█ ▄▄▄█ █ █ █ █ █ ▄▄▄█ ▄▄▄█ █ ▄▄▄▄▄█ █▄█ █ ⚬ █▄▄ █▄▄ ")); -console.log(themeColor("█ █▄▄▄█ █ █▄▄█▄█ █▄▄▄█ █▄▄▄█ █ █▄▄▄▄▄█ █ ▄▄▄▄▄▄ ▄")); -console.log(themeColor("█ ▄▄▄█ █ ▄▄ █ ▄▄▄█ ▄▄▄█ █▄▄▄▄▄ █ ▄ █ █ █ █▄▄")); -console.log(themeColor("█ █ █ █ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █ █ █ █ █ ● ● █")); -console.log(themeColor("█▄▄▄█ █▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄█▄▄▄▄▄▄▄█▄▄█ █▄▄█ ▀▄▄▄▄▄▄▀")); - - -console.log(" Currently building Firefish!"); -console.log( - chalk.rgb(255, 136, 0)(" Hang on for a moment, as this may take a while."), -); -console.log(""); diff --git a/scripts/build-greet.sh b/scripts/build-greet.sh new file mode 100755 index 0000000000..f8576fce74 --- /dev/null +++ b/scripts/build-greet.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +themeColor="\e[49;38;2;49;116;143m" + +echo -e "${themeColor} ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ◯ " +echo -e "█ █ █ ▄ █ █ █ █ █ █ █ █ █ ○ ▄ ▄" +echo -e "█ ▄▄▄█ █ █ █ █ █ ▄▄▄█ ▄▄▄█ █ ▄▄▄▄▄█ █▄█ █ ⚬ █▄▄ █▄▄" +echo -e "█ █▄▄▄█ █ █▄▄█▄█ █▄▄▄█ █▄▄▄█ █ █▄▄▄▄▄█ █ ▄▄▄▄▄▄ ▄" +echo -e "█ ▄▄▄█ █ ▄▄ █ ▄▄▄█ ▄▄▄█ █▄▄▄▄▄ █ ▄ █ █ █ █▄▄" +echo -e "█ █ █ █ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █ █ █ █ █ ● ● █" +echo -e "█▄▄▄█ █▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄█▄▄▄▄▄▄▄█▄▄█ █▄▄█ ▀▄▄▄▄▄▄▀\e[0m\n" +echo -e "\e[1;34mCurrently building Firefish!\e[0m" +echo -e "\e[1;38;2;255;136;0mThis may take a while...\e[0m"