create-zen 1.6.1 → 1.6.3
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 +4 -29
- 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.2')}`);
|
|
37
37
|
console.log();
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -51,20 +51,17 @@ const getProjectName = async () => {
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
console.log(
|
|
54
|
+
console.log();
|
|
55
55
|
return projectName;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
// Get project version with beautiful selection
|
|
59
59
|
const getProjectVersion = async () => {
|
|
60
60
|
console.log();
|
|
61
|
-
console.log(` ${chalk.hex(colors.green)('◇')} ${title('Select ZEN starter version:')}`);
|
|
62
|
-
console.log();
|
|
63
|
-
|
|
64
61
|
const { version } = await prompts({
|
|
65
62
|
type: 'select',
|
|
66
63
|
name: 'version',
|
|
67
|
-
message: '',
|
|
64
|
+
message: 'Select ZEN starter version:',
|
|
68
65
|
choices: [
|
|
69
66
|
{
|
|
70
67
|
title: `${chalk.hex(colors.white)('Standard Version')} ${chalk.hex(colors.lightGrey)('(Full-featured with all components)')}`,
|
|
@@ -78,9 +75,7 @@ const getProjectVersion = async () => {
|
|
|
78
75
|
initial: 0
|
|
79
76
|
});
|
|
80
77
|
|
|
81
|
-
|
|
82
|
-
console.log(` ${chalk.hex(colors.green)('◇')} ${title('Selected:')} ${highlight(selectedText)}`);
|
|
83
|
-
|
|
78
|
+
console.log();
|
|
84
79
|
return version === 'lite';
|
|
85
80
|
};
|
|
86
81
|
|
|
@@ -92,23 +87,6 @@ const getRepositoryUrl = (isLite) => {
|
|
|
92
87
|
return 'https://github.com/dmitry-conquer/zen-starter.git';
|
|
93
88
|
};
|
|
94
89
|
|
|
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
90
|
// Main function with enhanced UX
|
|
113
91
|
const main = async () => {
|
|
114
92
|
try {
|
|
@@ -117,9 +95,6 @@ const main = async () => {
|
|
|
117
95
|
const PROJECT_NAME = await getProjectName();
|
|
118
96
|
const isLite = await getProjectVersion();
|
|
119
97
|
const REPO_URL = getRepositoryUrl(isLite);
|
|
120
|
-
const VERSION_DESC = getVersionDescription(isLite);
|
|
121
|
-
|
|
122
|
-
displaySummary(PROJECT_NAME, VERSION_DESC);
|
|
123
98
|
|
|
124
99
|
// Cloning with spinner
|
|
125
100
|
const spinner = ora({
|