create-lve 0.3.8 → 0.3.9
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 +10 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -38,23 +38,22 @@ async function main() {
|
|
|
38
38
|
framework: () =>
|
|
39
39
|
p.select({
|
|
40
40
|
message: '选择框架',
|
|
41
|
-
defaultValue: 'react',
|
|
42
41
|
options: [
|
|
43
42
|
{ value: 'react', label: 'React 19', hint: 'VitePlus + Compiler' },
|
|
44
43
|
{ value: 'vue', label: 'Vue 3', hint: 'VitePlus + Optimized' },
|
|
45
44
|
{ value: 'next', label: 'Next.js 16', hint: 'React 19 + Tailwind v4 + Shadcn UI' },
|
|
46
45
|
],
|
|
47
46
|
}),
|
|
48
|
-
cssEngine: ({ results }) =>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
cssEngine: ({ results }) =>
|
|
48
|
+
results.framework === 'next'
|
|
49
|
+
? p.note('Next.js 已内置 Tailwind,无需选择')
|
|
50
|
+
: p.select({
|
|
51
|
+
message: '选择 CSS',
|
|
52
|
+
options: [
|
|
53
|
+
{ value: 'tailwind', label: 'Tailwind v4' },
|
|
54
|
+
{ value: 'unocss', label: 'UnoCSS' },
|
|
55
|
+
],
|
|
56
|
+
}),
|
|
58
57
|
install: () => p.confirm({ message: '是否现在自动安装依赖?', initialValue: true }),
|
|
59
58
|
},
|
|
60
59
|
{
|