create-zen 1.6.1 → 1.6.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/index.js +2 -30
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -33,7 +33,7 @@ const displayHeader = () => {
|
|
|
33
33
|
console.clear();
|
|
34
34
|
console.log();
|
|
35
35
|
console.log(` ${zen('ZEN')} - ${title('The Professional Web Development Starter')}`);
|
|
36
|
-
console.log(` ${subtitle('v1.6.
|
|
36
|
+
console.log(` ${subtitle('v1.6.1')}`);
|
|
37
37
|
console.log();
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -51,20 +51,15 @@ const getProjectName = async () => {
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
console.log(` ${chalk.hex(colors.green)('◇')} ${title('Project name:')} ${highlight(projectName)}`);
|
|
55
54
|
return projectName;
|
|
56
55
|
};
|
|
57
56
|
|
|
58
57
|
// Get project version with beautiful selection
|
|
59
58
|
const getProjectVersion = async () => {
|
|
60
|
-
console.log();
|
|
61
|
-
console.log(` ${chalk.hex(colors.green)('◇')} ${title('Select ZEN starter version:')}`);
|
|
62
|
-
console.log();
|
|
63
|
-
|
|
64
59
|
const { version } = await prompts({
|
|
65
60
|
type: 'select',
|
|
66
61
|
name: 'version',
|
|
67
|
-
message: '',
|
|
62
|
+
message: 'Select ZEN starter version:',
|
|
68
63
|
choices: [
|
|
69
64
|
{
|
|
70
65
|
title: `${chalk.hex(colors.white)('Standard Version')} ${chalk.hex(colors.lightGrey)('(Full-featured with all components)')}`,
|
|
@@ -78,9 +73,6 @@ const getProjectVersion = async () => {
|
|
|
78
73
|
initial: 0
|
|
79
74
|
});
|
|
80
75
|
|
|
81
|
-
const selectedText = version === 'lite' ? 'Lite Version' : 'Standard Version';
|
|
82
|
-
console.log(` ${chalk.hex(colors.green)('◇')} ${title('Selected:')} ${highlight(selectedText)}`);
|
|
83
|
-
|
|
84
76
|
return version === 'lite';
|
|
85
77
|
};
|
|
86
78
|
|
|
@@ -92,23 +84,6 @@ const getRepositoryUrl = (isLite) => {
|
|
|
92
84
|
return 'https://github.com/dmitry-conquer/zen-starter.git';
|
|
93
85
|
};
|
|
94
86
|
|
|
95
|
-
// Get version description
|
|
96
|
-
const getVersionDescription = (isLite) => {
|
|
97
|
-
if (isLite) {
|
|
98
|
-
return 'Lite Version - Essential features only';
|
|
99
|
-
}
|
|
100
|
-
return 'Standard Version - Full-featured with all components';
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
// Display compact project summary
|
|
104
|
-
const displaySummary = (projectName, versionDesc) => {
|
|
105
|
-
console.log();
|
|
106
|
-
console.log(` ${chalk.hex(colors.green)('📋')} ${title('Project Summary')}`);
|
|
107
|
-
console.log(` ${chalk.hex(colors.purple)('🏷️')} ${title('Project Name:')} ${highlight(projectName)}`);
|
|
108
|
-
console.log(` ${chalk.hex(colors.purple)('🎯')} ${title('Version:')} ${highlight(versionDesc)}`);
|
|
109
|
-
console.log();
|
|
110
|
-
};
|
|
111
|
-
|
|
112
87
|
// Main function with enhanced UX
|
|
113
88
|
const main = async () => {
|
|
114
89
|
try {
|
|
@@ -117,9 +92,6 @@ const main = async () => {
|
|
|
117
92
|
const PROJECT_NAME = await getProjectName();
|
|
118
93
|
const isLite = await getProjectVersion();
|
|
119
94
|
const REPO_URL = getRepositoryUrl(isLite);
|
|
120
|
-
const VERSION_DESC = getVersionDescription(isLite);
|
|
121
|
-
|
|
122
|
-
displaySummary(PROJECT_NAME, VERSION_DESC);
|
|
123
95
|
|
|
124
96
|
// Cloning with spinner
|
|
125
97
|
const spinner = ora({
|