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 +10 -7
- package/package.json +4 -5
- package/src/cli.ts +12 -10
- package/template/vue2-csr/README.md +2 -2
- package/template/vue2-csr/package.json +1 -1
- package/template/vue2-csr/src/components/hello-world.vue +1 -1
- package/template/vue2-csr/src/entry.server.ts +2 -2
- package/template/vue2-ssr/package.json +1 -1
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 === "." ? "." :
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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.
|
|
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.
|
|
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": "
|
|
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
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
|
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**:
|
|
11
|
+
- **Rendering Mode**: Client-Side Rendering (CSR)
|
|
12
12
|
|
|
13
13
|
## 🚀 Quick Start
|
|
14
14
|
|
|
@@ -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
|
|
12
|
-
<meta name="keywords" content="Vue2, CSR,
|
|
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>
|