fix(Config): 优化配置
This commit is contained in:
parent
359262891c
commit
fdb9ec0aaf
2
.gitignore
vendored
2
.gitignore
vendored
@ -12,6 +12,8 @@ dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
packages/examples
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
|
||||
@ -13,7 +13,9 @@
|
||||
"editor:tsc": "pnpm run -C packages/editor tsc",
|
||||
"editor:preview": "pnpm run -C packages/editor preview",
|
||||
"sdk:dev": "pnpm run -C packages/sdk dev",
|
||||
"sdk:build": "pnpm run -C packages/sdk build"
|
||||
"sdk:build": "pnpm run -C packages/sdk build",
|
||||
"examples:dev": "pnpm run -C packages/examples dev",
|
||||
"examples:build": "pnpm run -C packages/examples build"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=23.0.0"
|
||||
|
||||
@ -16,8 +16,8 @@
|
||||
"@vuepress/bundler-vite": "^2.0.0-rc.24",
|
||||
"http-server": "^14.1.1",
|
||||
"sass-embedded": "^1.85.0",
|
||||
"typescript": "^5.7.3",
|
||||
"vue": "^3.5.13",
|
||||
"typescript": "catalog:",
|
||||
"vue": "catalog:",
|
||||
"vuepress": "^2.0.0-rc.24",
|
||||
"vuepress-theme-plume": "^1.0.0-rc.164"
|
||||
}
|
||||
|
||||
@ -28,11 +28,11 @@
|
||||
"keyframe-resample": "^0.1.0",
|
||||
"meshoptimizer": "^0.23.0",
|
||||
"monaco-editor": "^0.52.2",
|
||||
"naive-ui": "^2.41.0",
|
||||
"naive-ui": "catalog:",
|
||||
"pinia": "^2.1.4",
|
||||
"three": "catalog:",
|
||||
"vite-plugin-static-copy": "^3.1.0",
|
||||
"vue": "^3.5.13",
|
||||
"vite-plugin-static-copy": "catalog:",
|
||||
"vue": "catalog:",
|
||||
"vue-i18n": "^11.1.2",
|
||||
"vue-router": "^4.3.2"
|
||||
},
|
||||
@ -42,7 +42,7 @@
|
||||
"@types/three": "catalog:",
|
||||
"@unocss/preset-attributify": "^0.46.5",
|
||||
"@unocss/preset-icons": "^0.46.5",
|
||||
"@vitejs/plugin-vue": "^5.2.3",
|
||||
"@vitejs/plugin-vue":"catalog:",
|
||||
"dotenv": "^16.3.1",
|
||||
"less": "^4.3.0",
|
||||
"typescript": "catalog:",
|
||||
|
||||
@ -910,7 +910,6 @@ export default {
|
||||
"Sphere": '球体',
|
||||
"Plane": '平面',
|
||||
"Ring": '环',
|
||||
"Polyhedron": '多面体',
|
||||
"Tetrahedron": '四面体',
|
||||
"Octahedron": '八面体',
|
||||
"Dodecahedron": '十二面体',
|
||||
|
||||
@ -5,12 +5,12 @@ import vue from '@vitejs/plugin-vue';
|
||||
import Unocss from 'unocss/vite';
|
||||
// import cesium from 'vite-plugin-cesium';
|
||||
import mkcert from 'vite-plugin-mkcert';
|
||||
import { viteStaticCopy } from 'vite-plugin-static-copy'
|
||||
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
||||
// 用于生成渐进式 Web 应用
|
||||
// import { VitePWA } from 'vite-plugin-pwa';
|
||||
// 自动按需引入Naive UI组件
|
||||
import Components from 'unplugin-vue-components/vite'
|
||||
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
|
||||
import Components from 'unplugin-vue-components/vite';
|
||||
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers';
|
||||
import {wrapperEnv, createPlugins} from "@astral3d/build-vite-plugins";
|
||||
|
||||
export default defineConfig(async ({mode, command}) => {
|
||||
@ -75,7 +75,7 @@ export default defineConfig(async ({mode, command}) => {
|
||||
vue: ['vue', 'vue-router', 'pinia'],
|
||||
i18n: ['vue-i18n'],
|
||||
ui: ['naive-ui'],
|
||||
pinia: ['@astral3d/engine']
|
||||
astral3d: ['@astral3d/engine']
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astral3d/build-vite-plugins": "workspace:^",
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/node": "catalog:",
|
||||
"@types/three": "catalog:",
|
||||
"rollup-plugin-visualizer": "catalog:",
|
||||
"typescript": "catalog:",
|
||||
|
||||
1128
pnpm-lock.yaml
1128
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -3,10 +3,15 @@ packages:
|
||||
- common/*
|
||||
|
||||
catalog:
|
||||
'three': 0.176.0
|
||||
'@types/node': ^24.6.0
|
||||
'@types/three': 0.176.0
|
||||
'@vitejs/plugin-vue': ^6.0.1
|
||||
'three': 0.176.0
|
||||
'rollup-plugin-visualizer': ^6.0.1
|
||||
'vite': ^6.2.5
|
||||
'vue': ^3.5.22
|
||||
"vite-plugin-static-copy": ^3.1.0
|
||||
'vite': ^6.2.5 #npm:rolldown-vite@7.1.14
|
||||
'typescript': ^5.4.5
|
||||
'naive-ui': ^2.43.1
|
||||
|
||||
autoInstallPeers: true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user