From 3ea701afdc2039e1a9b3afadb11b2ad794834572 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 23 Jun 2023 17:54:58 -0700 Subject: [PATCH] build: build greeting --- package.json | 3 ++- pnpm-lock.yaml | 3 +++ scripts/build-greet.js | 23 +++++++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 scripts/build-greet.js diff --git a/package.json b/package.json index e4b70094d..d07cf5eb5 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "private": true, "scripts": { "rebuild": "pnpm run clean && pnpm -r run build && pnpm run gulp", - "build": "pnpm -r run build && pnpm run gulp", + "build": "pnpm node ./scripts/build-greet.js && pnpm -r run build && pnpm run gulp", "start": "pnpm --filter backend run start", "start:test": "pnpm --filter backend run start:test", "init": "pnpm run migrate", @@ -46,6 +46,7 @@ "devDependencies": { "@types/gulp": "4.0.10", "@types/gulp-rename": "2.0.1", + "chalk": "5.2.0", "cross-env": "7.0.3", "cypress": "10.11.0", "execa": "5.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e86ba9145..93fa1740b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,6 +36,9 @@ importers: '@types/gulp-rename': specifier: 2.0.1 version: 2.0.1 + chalk: + specifier: 5.2.0 + version: 5.2.0 cross-env: specifier: 7.0.3 version: 7.0.3 diff --git a/scripts/build-greet.js b/scripts/build-greet.js new file mode 100644 index 000000000..c66c8a5af --- /dev/null +++ b/scripts/build-greet.js @@ -0,0 +1,23 @@ +import chalk from "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( + " Currently building Calckey!", +); +console.log( + chalk.rgb( + 255, + 136, + 0, + )( + " Hang on for a moment, as this may take a while", + ), +); +console.log("");