create-zen 1.7.0 → 1.7.1
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 +7 -39
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -55,39 +55,8 @@ const getProjectName = async () => {
|
|
|
55
55
|
return projectName;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
// Get
|
|
59
|
-
const
|
|
60
|
-
console.log();
|
|
61
|
-
|
|
62
|
-
const { version } = await prompts({
|
|
63
|
-
type: 'select',
|
|
64
|
-
name: 'version',
|
|
65
|
-
message: 'Select ZEN starter version:',
|
|
66
|
-
choices: [
|
|
67
|
-
{
|
|
68
|
-
title: `${chalk.hex(colors.white)('Standard Version')} ${chalk.hex(colors.lightGrey)('(Full-featured with all components)')}`,
|
|
69
|
-
value: 'standard'
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
title: `${chalk.hex(colors.purple)('Lite Version')} ${chalk.hex(colors.lightGrey)('(Essential features only)')}`,
|
|
73
|
-
value: 'lite'
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
initial: 0,
|
|
77
|
-
hint: false
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
console.log();
|
|
81
|
-
return version === 'lite';
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
// Get repository URL based on choice
|
|
85
|
-
const getRepositoryUrl = (isLite) => {
|
|
86
|
-
if (isLite) {
|
|
87
|
-
return 'https://github.com/dmitry-conquer/zen-starter-lite.git';
|
|
88
|
-
}
|
|
89
|
-
return 'https://github.com/dmitry-conquer/zen-starter.git';
|
|
90
|
-
};
|
|
58
|
+
// Get repository URL
|
|
59
|
+
const getRepositoryUrl = () => 'https://github.com/dmitry-conquer/zen-starter.git';
|
|
91
60
|
|
|
92
61
|
// Main function with enhanced UX
|
|
93
62
|
const main = async () => {
|
|
@@ -95,12 +64,11 @@ const main = async () => {
|
|
|
95
64
|
displayHeader();
|
|
96
65
|
|
|
97
66
|
const PROJECT_NAME = await getProjectName();
|
|
98
|
-
const
|
|
99
|
-
const REPO_URL = getRepositoryUrl(isLite);
|
|
67
|
+
const REPO_URL = getRepositoryUrl();
|
|
100
68
|
|
|
101
69
|
// Cloning with spinner
|
|
102
70
|
const spinner = ora({
|
|
103
|
-
text: `${chalk.hex(colors.green)('◇')} ${title('
|
|
71
|
+
text: `${chalk.hex(colors.green)('◇')} ${title('Preparing your ZEN project...')}`,
|
|
104
72
|
color: 'green'
|
|
105
73
|
}).start();
|
|
106
74
|
|
|
@@ -108,8 +76,8 @@ const main = async () => {
|
|
|
108
76
|
execSync(`git clone --depth=1 "${REPO_URL}" "${PROJECT_NAME}"`, { stdio: 'pipe' });
|
|
109
77
|
spinner.stop();
|
|
110
78
|
} catch (err) {
|
|
111
|
-
spinner.fail(`${error('
|
|
112
|
-
console.log(` ${subtitle('Please check your internet connection
|
|
79
|
+
spinner.fail(`${error('Setup failed!')}`);
|
|
80
|
+
console.log(` ${subtitle('Please check your internet connection, permissions, and try again.')}`);
|
|
113
81
|
process.exit(1);
|
|
114
82
|
}
|
|
115
83
|
|
|
@@ -122,7 +90,7 @@ const main = async () => {
|
|
|
122
90
|
console.log();
|
|
123
91
|
|
|
124
92
|
// Next steps
|
|
125
|
-
console.log(` ${chalk.hex(colors.green)('◇')} ${title('Next steps
|
|
93
|
+
console.log(` ${chalk.hex(colors.green)('◇')} ${title('Next steps')}`);
|
|
126
94
|
console.log(` ${chalk.hex(colors.purple)('📁')} ${highlight(`cd ${PROJECT_NAME}`)}`);
|
|
127
95
|
console.log(` ${chalk.hex(colors.purple)('📦')} ${highlight('npm install')}`);
|
|
128
96
|
console.log(` ${chalk.hex(colors.purple)('🧑💻')} ${highlight('npm run dev')}`);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-zen",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "✨ Create a new web development project with modern setup powered by Vite 🚀",
|
|
6
6
|
"bin": {
|
|
7
|
-
"create-zen": "
|
|
7
|
+
"create-zen": "index.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"fs-extra": "^11.1.1",
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
"chalk": "^5.3.0",
|
|
13
13
|
"ora": "^7.0.1"
|
|
14
14
|
}
|
|
15
|
-
}
|
|
15
|
+
}
|