create-epicflare 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +36 -0
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -4,6 +4,42 @@ import { spawnSync } from 'node:child_process'
|
|
|
4
4
|
import { join } from 'node:path'
|
|
5
5
|
import { createInterface } from 'node:readline'
|
|
6
6
|
|
|
7
|
+
const logoLines = ` ⠀⠀⠀⠀⠀⠀⢱⣆⠀⠀⠀⠀⠀⠀
|
|
8
|
+
⠀⠀⠀⠀⠀⠀⠈⣿⣷⡀⠀⠀⠀⠀
|
|
9
|
+
⠀⠀⠀⠀⠀⠀⢸⣿⣿⣷⣧⠀⠀⠀
|
|
10
|
+
⠀⠀⠀⠀⡀⢠⣿⡟⣿⣿⣿⡇⠀⠀
|
|
11
|
+
⠀⠀⠀⠀⣳⣼⣿⡏⢸⣿⣿⣿⢀⠀
|
|
12
|
+
⠀⠀⠀⣰⣿⣿⡿⠁⢸⣿⣿⡟⣼⡆
|
|
13
|
+
⢰⢀⣾⣿⣿⠟⠀⠀⣾⢿⣿⣿⣿⣿
|
|
14
|
+
⢸⣿⣿⣿⡏⠀⠀⠀⠃⠸⣿⣿⣿⡿
|
|
15
|
+
⢳⣿⣿⣿⠀⠀⠀⠀⠀⠀⢹⣿⡿⡁
|
|
16
|
+
⠀⠹⣿⣿⡄⠀⠀⠀⠀⠀⢠⣿⡞⠁
|
|
17
|
+
⠀⠀⠈⠛⢿⣄⠀⠀⠀⣠⠞⠋⠀⠀
|
|
18
|
+
⠀⠀⠀⠀⠀⠀⠉⠀⠀⠀⠀⠀⠀⠀`
|
|
19
|
+
|
|
20
|
+
const textLines = ` _ __ _
|
|
21
|
+
___ _ __ (_) ___ / _| | __ _ _ __ ___
|
|
22
|
+
/ _ \\ '_ \\| |/ __| |_| |/ _\` | '__/ _ \\
|
|
23
|
+
| __/ |_) | | (__| _| | (_| | | | __/
|
|
24
|
+
\\___| .__/|_|\\___|_| |_|\\__,_|_| \\___|
|
|
25
|
+
|_| `
|
|
26
|
+
|
|
27
|
+
function colorizeOrange(text: string): string {
|
|
28
|
+
const reset = '\x1b[0m'
|
|
29
|
+
const orange = '\x1b[38;2;255;165;0m' // Orange RGB: (255, 165, 0)
|
|
30
|
+
|
|
31
|
+
return text
|
|
32
|
+
.split('\n')
|
|
33
|
+
.map((line) => `${orange}${line}${reset}`)
|
|
34
|
+
.join('\n')
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const logoArt = colorizeOrange(logoLines)
|
|
38
|
+
const textArt = textLines
|
|
39
|
+
console.log(logoArt)
|
|
40
|
+
console.log(textArt)
|
|
41
|
+
console.log('\n\n')
|
|
42
|
+
|
|
7
43
|
const appName = process.argv[2] || (await getAppName())
|
|
8
44
|
|
|
9
45
|
function getAppName() {
|