create-lve 0.3.4 → 0.3.6
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/config.js +2 -2
- package/index.js +3 -3
- package/package.json +1 -1
- package/template-vue/_gitignore +25 -0
- package/template-vue/pnpm-lock.yaml +1608 -0
package/config.js
CHANGED
|
@@ -183,11 +183,11 @@ async function cleanupTemplate(ctx) {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
async function installDependencies(ctx, s) {
|
|
186
|
-
s.stop(pc.cyan(
|
|
186
|
+
s.stop(pc.cyan(`准备安装依赖`))
|
|
187
187
|
try {
|
|
188
188
|
await runTask(ctx.pkgManager, ['install'], ctx.targetDir)
|
|
189
189
|
|
|
190
|
-
s.start(pc.green(`正在执行 ${ctx.fmtCmd}
|
|
190
|
+
s.start(pc.green(`正在执行 ${ctx.fmtCmd} 优化代码结构`))
|
|
191
191
|
await new Promise((r) => setTimeout(r, 300))
|
|
192
192
|
|
|
193
193
|
const [cmd, ...args] = ctx.fmtCmd.split(' ')
|
package/index.js
CHANGED
|
@@ -23,7 +23,7 @@ async function main() {
|
|
|
23
23
|
p.text({
|
|
24
24
|
message: '项目名称',
|
|
25
25
|
placeholder: 'my-app',
|
|
26
|
-
defaultValue: '
|
|
26
|
+
defaultValue: 'react-app',
|
|
27
27
|
validate: (value) => {
|
|
28
28
|
if (!value || value.length === 0) return
|
|
29
29
|
if (value.match(/[<>:"|?*]/)) return '路径包含非法字符'
|
|
@@ -39,8 +39,8 @@ async function main() {
|
|
|
39
39
|
p.select({
|
|
40
40
|
message: '选择框架',
|
|
41
41
|
options: [
|
|
42
|
-
{ value: 'next', label: 'Next.js 16', hint: 'React 19 + Tailwind v4 + Shadcn UI' },
|
|
43
42
|
{ value: 'react', label: 'React 19', hint: 'VitePlus + Compiler' },
|
|
43
|
+
{ value: 'next', label: 'Next.js 16', hint: 'React 19 + Tailwind v4 + Shadcn UI' },
|
|
44
44
|
{ value: 'vue', label: 'Vue 3', hint: 'VitePlus + Optimized' },
|
|
45
45
|
],
|
|
46
46
|
}),
|
|
@@ -93,7 +93,7 @@ async function main() {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
s.start('🛠️
|
|
96
|
+
s.start('🛠️ 正在按需装配架构')
|
|
97
97
|
|
|
98
98
|
try {
|
|
99
99
|
if (project.shouldOverwrite) await fs.emptyDir(ctx.targetDir)
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
logs
|
|
3
|
+
*.log
|
|
4
|
+
npm-debug.log*
|
|
5
|
+
yarn-debug.log*
|
|
6
|
+
yarn-error.log*
|
|
7
|
+
pnpm-debug.log*
|
|
8
|
+
lerna-debug.log*
|
|
9
|
+
|
|
10
|
+
pnpm-lock.yaml
|
|
11
|
+
|
|
12
|
+
node_modules
|
|
13
|
+
dist
|
|
14
|
+
dist-ssr
|
|
15
|
+
*.local
|
|
16
|
+
|
|
17
|
+
# Editor directories and files
|
|
18
|
+
!.vscode/*
|
|
19
|
+
.idea
|
|
20
|
+
.DS_Store
|
|
21
|
+
*.suo
|
|
22
|
+
*.ntvs*
|
|
23
|
+
*.njsproj
|
|
24
|
+
*.sln
|
|
25
|
+
*.sw?
|