create-lve 0.3.1 → 0.3.3
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
|
@@ -49,8 +49,8 @@ async function main() {
|
|
|
49
49
|
return p.select({
|
|
50
50
|
message: '选择 CSS',
|
|
51
51
|
options: [
|
|
52
|
-
{ value: 'unocss', label: 'UnoCSS', hint: '⚡️ 战机级性能' },
|
|
53
52
|
{ value: 'tailwind', label: 'Tailwind v4', hint: '🛡️ 装甲级稳定' },
|
|
53
|
+
{ value: 'unocss', label: 'UnoCSS', hint: '⚡️ 战机级性能' },
|
|
54
54
|
],
|
|
55
55
|
})
|
|
56
56
|
},
|
package/package.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { defineConfig } from 'vite-plus'
|
|
1
|
+
import { defineConfig, loadEnv } from 'vite-plus'
|
|
2
2
|
import react from '@vitejs/plugin-react'
|
|
3
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
4
|
+
|
|
5
|
+
const mode = process.env.NODE_ENV || 'development'
|
|
6
|
+
const env = loadEnv(mode, process.cwd(), '')
|
|
3
7
|
|
|
4
8
|
// https://vite.dev/config/
|
|
5
9
|
export default defineConfig({
|
|
@@ -16,4 +20,18 @@ export default defineConfig({
|
|
|
16
20
|
}),
|
|
17
21
|
/* VITE_PLUS_PLUGINS */
|
|
18
22
|
],
|
|
23
|
+
resolve: {
|
|
24
|
+
alias: {
|
|
25
|
+
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
server: {
|
|
29
|
+
proxy: {
|
|
30
|
+
'/api': {
|
|
31
|
+
target: env.VITE_DIFY_API_URL,
|
|
32
|
+
changeOrigin: true,
|
|
33
|
+
rewrite: (path) => path.replace(/^\/api/, ''),
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
19
37
|
})
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
// ==================== Formatter (OXC) ====================
|
|
3
|
+
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
4
|
+
"editor.formatOnSave": true,
|
|
5
|
+
"editor.formatOnSaveMode": "file",
|
|
6
|
+
"oxc.enable.oxfmt": true,
|
|
7
|
+
|
|
8
|
+
// 语言特定 Formatter
|
|
9
|
+
"[javascript]": {
|
|
10
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
11
|
+
},
|
|
12
|
+
"[typescript]": {
|
|
13
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
14
|
+
},
|
|
15
|
+
"[typescriptreact]": {
|
|
16
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
17
|
+
},
|
|
18
|
+
"[javascriptreact]": {
|
|
19
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
20
|
+
},
|
|
21
|
+
"[css]": {
|
|
22
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
23
|
+
},
|
|
24
|
+
"[tailwindcss]": {
|
|
25
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
26
|
+
},
|
|
27
|
+
"[json]": {
|
|
28
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
29
|
+
},
|
|
30
|
+
"[jsonc]": {
|
|
31
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
32
|
+
},
|
|
33
|
+
"[html]": {
|
|
34
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
35
|
+
},
|
|
36
|
+
"[vue]": {
|
|
37
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
// ==================== Tailwind + shadcn/ui(强烈推荐)===================
|
|
41
|
+
"tailwindCSS.experimental.classRegex": [["cn\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]],
|
|
42
|
+
"tailwindCSS.includeLanguages": {
|
|
43
|
+
"typescript": "html",
|
|
44
|
+
"typescriptreact": "html"
|
|
45
|
+
},
|
|
46
|
+
"editor.quickSuggestions": {
|
|
47
|
+
"strings": "on"
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
// ==================== 其他项目通用 ====================
|
|
51
|
+
"git.openRepositoryInParentFolders": "always",
|
|
52
|
+
"js/ts.updateImportsOnFileMove.enabled": "always",
|
|
53
|
+
"diffEditor.ignoreTrimWhitespace": true,
|
|
54
|
+
"diffEditor.hideUnchangedRegions.enabled": true,
|
|
55
|
+
"editor.inlayHints.enabled": "on"
|
|
56
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { defineConfig } from 'vite-plus'
|
|
1
|
+
import { defineConfig, loadEnv } from 'vite-plus'
|
|
2
2
|
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
4
|
+
|
|
5
|
+
const mode = process.env.NODE_ENV || 'development'
|
|
6
|
+
const env = loadEnv(mode, process.cwd(), '')
|
|
3
7
|
|
|
4
8
|
// https://vite.dev/config/
|
|
5
9
|
export default defineConfig({
|
|
@@ -12,4 +16,18 @@ export default defineConfig({
|
|
|
12
16
|
vue(),
|
|
13
17
|
/* VITE_PLUS_PLUGINS */
|
|
14
18
|
],
|
|
19
|
+
resolve: {
|
|
20
|
+
alias: {
|
|
21
|
+
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
server: {
|
|
25
|
+
proxy: {
|
|
26
|
+
'/api': {
|
|
27
|
+
target: env.VITE_DIFY_API_URL,
|
|
28
|
+
changeOrigin: true,
|
|
29
|
+
rewrite: (path) => path.replace(/^\/api/, ''),
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
15
33
|
})
|