build: build greeting

This commit is contained in:
ThatOneCalculator 2023-06-23 17:54:58 -07:00
parent 9d161d9021
commit 3ea701afdc
No known key found for this signature in database
GPG key ID: 8703CACD01000000
3 changed files with 28 additions and 1 deletions

View file

@ -10,7 +10,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"rebuild": "pnpm run clean && pnpm -r run build && pnpm run gulp", "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": "pnpm --filter backend run start",
"start:test": "pnpm --filter backend run start:test", "start:test": "pnpm --filter backend run start:test",
"init": "pnpm run migrate", "init": "pnpm run migrate",
@ -46,6 +46,7 @@
"devDependencies": { "devDependencies": {
"@types/gulp": "4.0.10", "@types/gulp": "4.0.10",
"@types/gulp-rename": "2.0.1", "@types/gulp-rename": "2.0.1",
"chalk": "5.2.0",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"cypress": "10.11.0", "cypress": "10.11.0",
"execa": "5.1.1", "execa": "5.1.1",

View file

@ -36,6 +36,9 @@ importers:
'@types/gulp-rename': '@types/gulp-rename':
specifier: 2.0.1 specifier: 2.0.1
version: 2.0.1 version: 2.0.1
chalk:
specifier: 5.2.0
version: 5.2.0
cross-env: cross-env:
specifier: 7.0.3 specifier: 7.0.3
version: 7.0.3 version: 7.0.3

23
scripts/build-greet.js Normal file
View file

@ -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("");