create-esmx 3.0.0-rc.46 → 3.0.0-rc.47

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/dist/cli.mjs CHANGED
@@ -142,13 +142,16 @@ export async function cli(options = {}) {
142
142
  );
143
143
  const installCmd = installCommand;
144
144
  const devCmd = devCommand;
145
- const targetDirForDisplay = projectNameInput === "." ? "." : root.split("/").pop() || root.split("\\").pop() || root;
146
- const nextSteps = [
147
- color.reset(`1. ${color.cyan(`cd ${targetDirForDisplay}`)}`),
148
- color.reset(`2. ${color.cyan(installCmd)}`),
149
- color.reset(`3. ${color.cyan("git init")} ${color.gray("(optional)")}`),
150
- color.reset(`4. ${color.cyan(devCmd)}`)
151
- ];
145
+ const targetDirForDisplay = projectNameInput === "." ? "." : projectNameInput;
146
+ const steps = [
147
+ projectNameInput !== "." ? `cd ${targetDirForDisplay}` : null,
148
+ installCmd,
149
+ `git init ${color.gray("(optional)")}`,
150
+ devCmd
151
+ ].filter(Boolean);
152
+ const nextSteps = steps.map((step, index) => {
153
+ return color.reset(`${index + 1}. ${color.cyan(step)}`);
154
+ });
152
155
  note(nextSteps.join("\n"), "Next steps");
153
156
  outro(color.reset(color.green("Happy coding! \u{1F389}")));
154
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-esmx",
3
- "version": "3.0.0-rc.46",
3
+ "version": "3.0.0-rc.47",
4
4
  "description": "A scaffold tool for creating Esmx projects",
5
5
  "type": "module",
6
6
  "private": false,
@@ -15,8 +15,7 @@
15
15
  "coverage": "vitest run --coverage --pass-with-no-tests",
16
16
  "lint:js": "biome check --write --no-errors-on-unmatched",
17
17
  "build": "unbuild",
18
- "postbuild": "node build/postbuild.mjs",
19
- "export-templates": "node build/postbuild.mjs"
18
+ "postbuild": "node build/postbuild.mjs"
20
19
  },
21
20
  "dependencies": {
22
21
  "@clack/prompts": "^0.7.0",
@@ -25,7 +24,7 @@
25
24
  },
26
25
  "devDependencies": {
27
26
  "@biomejs/biome": "1.9.4",
28
- "@esmx/lint": "3.0.0-rc.46",
27
+ "@esmx/lint": "3.0.0-rc.47",
29
28
  "@types/minimist": "^1.2.5",
30
29
  "@types/node": "^24.0.0",
31
30
  "@vitest/coverage-v8": "3.2.4",
@@ -70,5 +69,5 @@
70
69
  "url": "https://github.com/esmnext/esmx/issues"
71
70
  },
72
71
  "homepage": "https://github.com/esmnext/esmx#readme",
73
- "gitHead": "dcac010017466e95e1c7db78094d4925c27d54b9"
72
+ "gitHead": "3e55424b9029d259537a802032f3a1f54b6fb1e8"
74
73
  }
package/src/cli.ts CHANGED
@@ -185,16 +185,18 @@ export async function cli(options: CliOptions = {}): Promise<void> {
185
185
  const devCmd = devCommand;
186
186
 
187
187
  const targetDirForDisplay =
188
- projectNameInput === '.'
189
- ? '.'
190
- : root.split('/').pop() || root.split('\\').pop() || root;
191
-
192
- const nextSteps = [
193
- color.reset(`1. ${color.cyan(`cd ${targetDirForDisplay}`)}`),
194
- color.reset(`2. ${color.cyan(installCmd)}`),
195
- color.reset(`3. ${color.cyan('git init')} ${color.gray('(optional)')}`),
196
- color.reset(`4. ${color.cyan(devCmd)}`)
197
- ];
188
+ projectNameInput === '.' ? '.' : projectNameInput;
189
+
190
+ const steps = [
191
+ projectNameInput !== '.' ? `cd ${targetDirForDisplay}` : null,
192
+ installCmd,
193
+ `git init ${color.gray('(optional)')}`,
194
+ devCmd
195
+ ].filter(Boolean);
196
+
197
+ const nextSteps = steps.map((step, index) => {
198
+ return color.reset(`${index + 1}. ${color.cyan(step)}`);
199
+ });
198
200
 
199
201
  note(nextSteps.join('\n'), 'Next steps');
200
202
 
@@ -1,6 +1,6 @@
1
1
  # {{projectName}}
2
2
 
3
- An Esmx project with Vue2 and Server-Side Rendering.
3
+ An Esmx project with Vue2 and Client-Side Rendering.
4
4
 
5
5
  ## 📦 Tech Stack
6
6
 
@@ -8,7 +8,7 @@ An Esmx project with Vue2 and Server-Side Rendering.
8
8
  - **UI Framework**: Vue2 with Composition API
9
9
  - **Build Tool**: Rspack
10
10
  - **Type Checking**: TypeScript
11
- - **Rendering Mode**: Server-Side Rendering (SSR)
11
+ - **Rendering Mode**: Client-Side Rendering (CSR)
12
12
 
13
13
  ## 🚀 Quick Start
14
14
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "{{projectName}}",
3
3
  "version": "1.0.0",
4
- "description": "Vue2 with Server-Side Rendering",
4
+ "description": "Vue2 Client-Side Rendering framework",
5
5
  "type": "module",
6
6
  "private": true,
7
7
  "scripts": {
@@ -21,7 +21,7 @@ const count = ref<number>(0);
21
21
  </p>
22
22
  </div>
23
23
 
24
- <p>Experience Vue2 with server-side rendering powered by Esmx framework</p>
24
+ <p>Experience Vue2 with client-side rendering powered by Esmx framework</p>
25
25
  </div>
26
26
  </template>
27
27
 
@@ -8,8 +8,8 @@ export default async (rc: RenderContext) => {
8
8
  <head>
9
9
  <meta charset="UTF-8">
10
10
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
11
- <meta name="description" content="Vue2 with Server-Side Rendering powered by Esmx framework">
12
- <meta name="keywords" content="Vue2, CSR, Server-Side Rendering, Esmx, Vue.js, JavaScript, TypeScript, Rspack">
11
+ <meta name="description" content="Vue2 with Client-Side Rendering powered by Esmx framework">
12
+ <meta name="keywords" content="Vue2, CSR, Client-Side Rendering, Esmx, Vue.js, JavaScript, TypeScript, Rspack">
13
13
  <link rel="icon" href="https://www.esmnext.com/logo.svg" type="image/svg+xml">
14
14
  ${rc.preload()}
15
15
  <title>Vue2 CSR Demo | Powered by Esmx</title>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "{{projectName}}",
3
3
  "version": "1.0.0",
4
- "description": "Vue2 with Server-Side Rendering",
4
+ "description": "Vue2 Server-Side Rendering framework",
5
5
  "type": "module",
6
6
  "private": true,
7
7
  "scripts": {