perf: 优化
This commit is contained in:
parent
0d8e594a26
commit
cec2edf2ff
@ -3,7 +3,7 @@
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<link rel="icon" type="image/png" href="https://kevisual.xiongxiao.me/root/center/panda.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + React + TS</title>
|
||||
<link rel="stylesheet" href="/src/index.css" />
|
||||
|
@ -11,7 +11,8 @@
|
||||
"postbuild2": "pnpm build:css",
|
||||
"preview": "vite preview",
|
||||
"pub": "envision deploy ./dist -k vite-react -v 0.0.1",
|
||||
"dev:lib": "turbo dev"
|
||||
"dev:lib": "turbo dev",
|
||||
"cmd": "tsx ./script/cmd.ts "
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
@ -34,7 +35,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@kevisual/query": "0.0.15",
|
||||
"@kevisual/query": "0.0.17",
|
||||
"@kevisual/types": "^0.0.6",
|
||||
"@tailwindcss/vite": "^4.1.3",
|
||||
"@types/node": "^22.14.0",
|
||||
@ -42,6 +43,8 @@
|
||||
"@types/react-dom": "^19.1.1",
|
||||
"@vitejs/plugin-basic-ssl": "^2.0.0",
|
||||
"@vitejs/plugin-react": "^4.3.4",
|
||||
"commander": "^13.1.0",
|
||||
"inquire": "^0.4.8",
|
||||
"tailwindcss": "^4.1.3",
|
||||
"typescript": "^5.8.3",
|
||||
"vite": "^6.2.5"
|
||||
|
28
pnpm-lock.yaml
generated
28
pnpm-lock.yaml
generated
@ -40,8 +40,8 @@ importers:
|
||||
version: 5.0.3(@types/react@19.1.0)(immer@10.1.1)(react@19.1.0)(use-sync-external-store@1.2.2(react@19.1.0))
|
||||
devDependencies:
|
||||
'@kevisual/query':
|
||||
specifier: 0.0.15
|
||||
version: 0.0.15(ws@8.18.1)
|
||||
specifier: 0.0.17
|
||||
version: 0.0.17(ws@8.18.1)
|
||||
'@kevisual/types':
|
||||
specifier: ^0.0.6
|
||||
version: 0.0.6
|
||||
@ -63,6 +63,12 @@ importers:
|
||||
'@vitejs/plugin-react':
|
||||
specifier: ^4.3.4
|
||||
version: 4.3.4(vite@6.2.5(@types/node@22.14.0)(jiti@2.4.2)(lightningcss@1.29.2)(yaml@2.5.1))
|
||||
commander:
|
||||
specifier: ^13.1.0
|
||||
version: 13.1.0
|
||||
inquire:
|
||||
specifier: ^0.4.8
|
||||
version: 0.4.8
|
||||
tailwindcss:
|
||||
specifier: ^4.1.3
|
||||
version: 4.1.3
|
||||
@ -343,8 +349,8 @@ packages:
|
||||
'@jridgewell/trace-mapping@0.3.25':
|
||||
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
|
||||
|
||||
'@kevisual/query@0.0.15':
|
||||
resolution: {integrity: sha512-DK41qvyOiJMmlj70QyVP/48M0gszA39DdnBLtgU94YwAe6OqKrr9tYXHLjZrOROmUVMezIIBQuWMLedSAvb54A==}
|
||||
'@kevisual/query@0.0.17':
|
||||
resolution: {integrity: sha512-WMvWM+3pNlPKNhoxPX9fldMp1tOeJrkRM/tXA4bvOnftIoX2yeI4v0wTpbGJXES/bLlo7OC2kV8SeKF0K6dnxQ==}
|
||||
|
||||
'@kevisual/router@0.0.10':
|
||||
resolution: {integrity: sha512-prQGiMIboQhDNN1Eubp8x7YDyRCmAsUqpHQwzfu9f7WvgisVWSLOWSaLbqjqNssV2xcc1DgVrHIKdLhbx8HCqQ==}
|
||||
@ -603,6 +609,10 @@ packages:
|
||||
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
|
||||
engines: {node: '>= 0.8'}
|
||||
|
||||
commander@13.1.0:
|
||||
resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
convert-source-map@2.0.0:
|
||||
resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
|
||||
|
||||
@ -729,6 +739,10 @@ packages:
|
||||
immer@10.1.1:
|
||||
resolution: {integrity: sha512-s2MPrmjovJcoMaHtx6K11Ra7oD05NT97w1IC5zpMkT6Atjr7H8LjaDd81iIxUYpMKSRRNMJE703M1Fhr/TctHw==}
|
||||
|
||||
inquire@0.4.8:
|
||||
resolution: {integrity: sha512-up9ueqKwPnuitvEqyOxBU1ggima7YsUywI00qEnYVnor9IissXbltZ86xi4VXKkci0/qWAtfMP/nu4oR4fUaEQ==}
|
||||
engines: {node: '>=0.8.22'}
|
||||
|
||||
jiti@2.4.2:
|
||||
resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==}
|
||||
hasBin: true
|
||||
@ -1278,7 +1292,7 @@ snapshots:
|
||||
'@jridgewell/resolve-uri': 3.1.2
|
||||
'@jridgewell/sourcemap-codec': 1.5.0
|
||||
|
||||
'@kevisual/query@0.0.15(ws@8.18.1)':
|
||||
'@kevisual/query@0.0.17(ws@8.18.1)':
|
||||
dependencies:
|
||||
openai: 4.89.0(ws@8.18.1)
|
||||
transitivePeerDependencies:
|
||||
@ -1508,6 +1522,8 @@ snapshots:
|
||||
dependencies:
|
||||
delayed-stream: 1.0.0
|
||||
|
||||
commander@13.1.0: {}
|
||||
|
||||
convert-source-map@2.0.0: {}
|
||||
|
||||
csstype@3.1.3: {}
|
||||
@ -1644,6 +1660,8 @@ snapshots:
|
||||
immer@10.1.1:
|
||||
optional: true
|
||||
|
||||
inquire@0.4.8: {}
|
||||
|
||||
jiti@2.4.2: {}
|
||||
|
||||
js-tokens@4.0.0: {}
|
||||
|
@ -4,7 +4,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Excalidraw</title>
|
||||
<link rel="icon" type="image/png" href="https://kevisual.xiongxiao.me/root/center/panda.png" />
|
||||
<title>Demo</title>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
|
@ -1,5 +1,6 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { program, Command } from 'commander';
|
||||
|
||||
export const root = process.cwd();
|
||||
|
||||
@ -9,3 +10,6 @@ export const clearWorkspace = () => {
|
||||
fs.rmSync(path.join(root, file), { recursive: true, force: true });
|
||||
}
|
||||
};
|
||||
program.addCommand(new Command('clear').action(clearWorkspace));
|
||||
|
||||
program.parse(process.argv);
|
@ -72,7 +72,7 @@ export default defineConfig({
|
||||
// },
|
||||
},
|
||||
server: {
|
||||
port: 7006,
|
||||
port: 7008,
|
||||
host: '0.0.0.0',
|
||||
proxy: {
|
||||
'/api': {
|
||||
|
Loading…
x
Reference in New Issue
Block a user