create-zen 1.6.0 → 1.6.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.
Files changed (2) hide show
  1. package/index.js +14 -65
  2. package/package.json +2 -3
package/index.js CHANGED
@@ -6,7 +6,6 @@ import path from 'path';
6
6
  import prompts from 'prompts';
7
7
  import chalk from 'chalk';
8
8
  import ora from 'ora';
9
- import boxen from 'boxen';
10
9
 
11
10
  // Color palette inspired by the ZEN website
12
11
  const colors = {
@@ -29,24 +28,12 @@ const error = (text) => chalk.red.bold(text);
29
28
  const success = (text) => chalk.green.bold(text);
30
29
  const info = (text) => chalk.blue(text);
31
30
 
32
- // Display stunning header with boxen
31
+ // Display minimalistic header
33
32
  const displayHeader = () => {
34
33
  console.clear();
35
34
  console.log();
36
-
37
- const headerBox = boxen(
38
- `${zen('ZEN')} - ${title('The Professional Web Development Starter')}\n${subtitle('v1.6.0 • Professional Starter Kit • MIT License')}`,
39
- {
40
- padding: 1,
41
- margin: 1,
42
- borderStyle: 'round',
43
- borderColor: colors.green,
44
- backgroundColor: colors.bgDark,
45
- textAlignment: 'center'
46
- }
47
- );
48
-
49
- console.log(headerBox);
35
+ console.log(` ${zen('ZEN')} - ${title('The Professional Web Development Starter')}`);
36
+ console.log(` ${subtitle('v1.6.0')}`);
50
37
  console.log();
51
38
  };
52
39
 
@@ -113,26 +100,12 @@ const getVersionDescription = (isLite) => {
113
100
  return 'Standard Version - Full-featured with all components';
114
101
  };
115
102
 
116
- // Display project summary in a beautiful box
117
- const displaySummary = (projectName, versionDesc, repoUrl) => {
103
+ // Display compact project summary
104
+ const displaySummary = (projectName, versionDesc) => {
118
105
  console.log();
119
-
120
- const summaryBox = boxen(
121
- `${chalk.hex(colors.green)('📋')} ${title('Project Summary')}\n\n` +
122
- `${chalk.hex(colors.purple)('🏷️')} ${title('Project Name:')} ${highlight(projectName)}\n` +
123
- `${chalk.hex(colors.purple)('🎯')} ${title('Version:')} ${highlight(versionDesc)}\n` +
124
- `${chalk.hex(colors.purple)('🔗')} ${title('Repository:')} ${subtitle(repoUrl)}`,
125
- {
126
- padding: 1,
127
- margin: 1,
128
- borderStyle: 'round',
129
- borderColor: colors.purple,
130
- backgroundColor: colors.bgDark,
131
- textAlignment: 'left'
132
- }
133
- );
134
-
135
- console.log(summaryBox);
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)}`);
136
109
  console.log();
137
110
  };
138
111
 
@@ -146,7 +119,7 @@ const main = async () => {
146
119
  const REPO_URL = getRepositoryUrl(isLite);
147
120
  const VERSION_DESC = getVersionDescription(isLite);
148
121
 
149
- displaySummary(PROJECT_NAME, VERSION_DESC, REPO_URL);
122
+ displaySummary(PROJECT_NAME, VERSION_DESC);
150
123
 
151
124
  // Cloning with spinner
152
125
  const spinner = ora({
@@ -156,9 +129,9 @@ const main = async () => {
156
129
 
157
130
  try {
158
131
  execSync(`git clone --depth=1 "${REPO_URL}" "${PROJECT_NAME}"`, { stdio: 'pipe' });
159
- spinner.succeed(`${chalk.hex(colors.green)('◇')} ${success('Repository cloned successfully!')}`);
132
+ spinner.succeed(`${success('Repository cloned successfully!')}`);
160
133
  } catch (err) {
161
- spinner.fail(`${chalk.hex(colors.green)('◇')} ${error('Clone failed!')}`);
134
+ spinner.fail(`${error('Clone failed!')}`);
162
135
  console.log(` ${subtitle('Please check your internet connection or permissions.')}`);
163
136
  process.exit(1);
164
137
  }
@@ -166,21 +139,9 @@ const main = async () => {
166
139
  // Remove .git
167
140
  fs.rmSync(path.join(PROJECT_NAME, '.git'), { recursive: true, force: true });
168
141
 
169
- // Success message with beautiful box
142
+ // Success message
170
143
  console.log();
171
- const successBox = boxen(
172
- `${chalk.hex(colors.green)('✅')} ${success('SUCCESS! Your project is ready to go!')} ${chalk.hex(colors.purple)('🎉')}`,
173
- {
174
- padding: 1,
175
- margin: 1,
176
- borderStyle: 'round',
177
- borderColor: colors.green,
178
- backgroundColor: colors.bgDark,
179
- textAlignment: 'center'
180
- }
181
- );
182
-
183
- console.log(successBox);
144
+ console.log(` ${success('✅ SUCCESS! Your project is ready to go!')} ${chalk.hex(colors.purple)('🎉')}`);
184
145
  console.log();
185
146
 
186
147
  // Next steps
@@ -191,19 +152,7 @@ const main = async () => {
191
152
  console.log();
192
153
 
193
154
  // Final message
194
- const finalBox = boxen(
195
- `${zen('Happy coding with ZEN!')} ${chalk.hex(colors.purple)('✨')}`,
196
- {
197
- padding: 1,
198
- margin: 1,
199
- borderStyle: 'round',
200
- borderColor: colors.purple,
201
- backgroundColor: colors.bgDark,
202
- textAlignment: 'center'
203
- }
204
- );
205
-
206
- console.log(finalBox);
155
+ console.log(` ${zen('Happy coding with ZEN!')} ${chalk.hex(colors.purple)('✨')}`);
207
156
  console.log();
208
157
 
209
158
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-zen",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "type": "module",
5
5
  "description": "✨ Create a new web development project with modern setup powered by Vite 🚀",
6
6
  "bin": {
@@ -10,7 +10,6 @@
10
10
  "fs-extra": "^11.1.1",
11
11
  "prompts": "^2.4.2",
12
12
  "chalk": "^5.3.0",
13
- "ora": "^7.0.1",
14
- "boxen": "^7.1.1"
13
+ "ora": "^7.0.1"
15
14
  }
16
15
  }