create-lve 0.2.9 → 0.2.10
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
CHANGED
|
@@ -79,7 +79,7 @@ async function main() {
|
|
|
79
79
|
}),
|
|
80
80
|
cssEngine: ({ results }) => {
|
|
81
81
|
if (results.framework === 'next') return;
|
|
82
|
-
p.select({
|
|
82
|
+
return p.select({
|
|
83
83
|
message: '选择 CSS',
|
|
84
84
|
options: [
|
|
85
85
|
{ value: 'unocss', label: 'UnoCSS', hint: '⚡️ 战机级性能' },
|
|
@@ -221,7 +221,7 @@ export default defineConfig({
|
|
|
221
221
|
const fmtCmd = isNext ? 'pnpm fmt' : 'vp fmt'
|
|
222
222
|
|
|
223
223
|
if (project.install) {
|
|
224
|
-
s.message(pc.green(`正在执行 ${pkgManager} install
|
|
224
|
+
s.message(pc.green(`正在执行 ${pkgManager} install`))
|
|
225
225
|
try {
|
|
226
226
|
await new Promise((resolve, reject) => {
|
|
227
227
|
const child = spawn(pkgManager, ['install'], {
|
package/package.json
CHANGED
|
@@ -68,10 +68,6 @@
|
|
|
68
68
|
"js/ts.updateImportsOnFileMove.enabled": "always",
|
|
69
69
|
"diffEditor.ignoreTrimWhitespace": true,
|
|
70
70
|
"diffEditor.hideUnchangedRegions.enabled": true,
|
|
71
|
-
|
|
72
|
-
"editor.codeActionsOnSave": {
|
|
73
|
-
"source.format.oxc": "always"
|
|
74
|
-
},
|
|
75
71
|
"editor.inlayHints.enabled": "on",
|
|
76
72
|
"js/ts.tsdk.path": "node_modules/typescript/lib"
|
|
77
73
|
}
|
|
@@ -37,22 +37,6 @@
|
|
|
37
37
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
38
38
|
},
|
|
39
39
|
|
|
40
|
-
// ==================== Next.js 专用 ====================
|
|
41
|
-
"workbench.editor.customLabels.patterns": {
|
|
42
|
-
"**/app/**/layout.{js,jsx,ts,tsx}": "${dirname}/layout",
|
|
43
|
-
"**/app/**/page.{js,jsx,ts,tsx}": "${dirname}/page",
|
|
44
|
-
"**/app/**/route.{js,jsx,ts,tsx}": "${dirname}/route",
|
|
45
|
-
"**/app/**/loading.{js,jsx,ts,tsx}": "${dirname}/loading",
|
|
46
|
-
"**/app/**/template.{js,jsx,ts,tsx}": "${dirname}/template",
|
|
47
|
-
"**/app/**/default.{js,jsx,ts,tsx}": "${dirname}/default",
|
|
48
|
-
"**/app/**/error.{js,jsx,ts,tsx}": "${dirname}/error",
|
|
49
|
-
"**/app/**/not-found.{js,jsx,ts,tsx}": "${dirname}/not-found"
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
// ==================== TypeScript(解决 Next.js TS 问题)===================
|
|
53
|
-
"typescript.tsdk": "node_modules/typescript/lib",
|
|
54
|
-
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
55
|
-
|
|
56
40
|
// ==================== Tailwind + shadcn/ui(强烈推荐)===================
|
|
57
41
|
"tailwindCSS.experimental.classRegex": [["cn\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]],
|
|
58
42
|
"tailwindCSS.includeLanguages": {
|
|
@@ -68,9 +52,5 @@
|
|
|
68
52
|
"js/ts.updateImportsOnFileMove.enabled": "always",
|
|
69
53
|
"diffEditor.ignoreTrimWhitespace": true,
|
|
70
54
|
"diffEditor.hideUnchangedRegions.enabled": true,
|
|
71
|
-
|
|
72
|
-
"editor.codeActionsOnSave": {
|
|
73
|
-
"source.format.oxc": "always"
|
|
74
|
-
},
|
|
75
55
|
"editor.inlayHints.enabled": "on"
|
|
76
56
|
}
|