create-butterfly-app-v2 2.0.1 → 2.0.2
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/cli.js +17 -15
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -24,20 +24,21 @@ function c(color, text) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
function showBanner() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
${
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
`
|
|
27
|
+
const { cyan, blue, green, dim, bold, reset, magenta } = C;
|
|
28
|
+
console.log(
|
|
29
|
+
`${cyan} ╔══════════════════════════════════════════╗${reset}\n` +
|
|
30
|
+
`${cyan} ║${reset} ${bold}CREATE BUTTERFLY APP${reset} ${cyan}║${reset}\n` +
|
|
31
|
+
`${cyan} ║${reset} ${dim}Full-Stack Project Generator${reset} ${cyan}║${reset}\n` +
|
|
32
|
+
`${cyan} ╠══════════════════════════════════════════╣${reset}\n` +
|
|
33
|
+
`${cyan} ║${reset} ${cyan}║${reset}\n` +
|
|
34
|
+
`${cyan} ║${reset} ${blue} ,,_${reset} ${cyan}║${reset}\n` +
|
|
35
|
+
`${cyan} ║${reset} ${blue} \\'-${reset} ${cyan}║${reset}\n` +
|
|
36
|
+
`${cyan} ║${reset} ${blue} ) -'\\${reset} ${green}Node.js${reset} ${blue}+${reset} ${green}React${reset} ${blue}+${reset} ${cyan}║${reset}\n` +
|
|
37
|
+
`${cyan} ║${reset} ${blue} /_/|_\\\\${reset} ${green}Tailwind${reset} ${blue}+${reset} ${green}MySQL${reset} ${cyan}║${reset}\n` +
|
|
38
|
+
`${cyan} ║${reset} ${blue} \\__/${reset} ${cyan}║${reset}\n` +
|
|
39
|
+
`${cyan} ║${reset} ${cyan}║${reset}\n` +
|
|
40
|
+
`${cyan} ╚══════════════════════════════════════════╝${reset}`
|
|
41
|
+
);
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
const PROJECT_TYPES = [
|
|
@@ -50,7 +51,8 @@ async function selectProjectType() {
|
|
|
50
51
|
console.log(` ${c("bold", "Select your project type:")}\n`);
|
|
51
52
|
for (let i = 0; i < PROJECT_TYPES.length; i++) {
|
|
52
53
|
const t = PROJECT_TYPES[i];
|
|
53
|
-
|
|
54
|
+
const label = "[" + (i + 1) + "]";
|
|
55
|
+
console.log(` ${c("yellow", label)} ${t.emoji} ${c("bold", t.name)}`);
|
|
54
56
|
}
|
|
55
57
|
console.log(` ${c("yellow", "[r]")} 🎲 ${c("bold", "Random")} - Surprise me!\n`);
|
|
56
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-butterfly-app-v2",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Full-stack boilerplate: Node.js + React + Tailwind + MySQL. Choose from Hotel, Parking, or Student Management projects with auth + full CRUD.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-butterfly-app-v2": "cli.js"
|