更新 package.json
This commit is contained in:
33
package.json
33
package.json
@@ -1,21 +1,28 @@
|
||||
{
|
||||
"name": "deearthx-v3",
|
||||
"version": "1.0.0",
|
||||
"description": "main",
|
||||
"name": "deearthx-v3", // 项目名称
|
||||
"version": "1.0.0", // 项目版本号
|
||||
"description": "main", // 项目描述
|
||||
|
||||
// Git 仓库信息
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.xcclyc.cn/15736060610/DeEarthX.git"
|
||||
},
|
||||
"license": "ISC",
|
||||
"author": "Tianpao",
|
||||
"type": "module",
|
||||
"main": "./.build/build.js",
|
||||
|
||||
"license": "ISC", // 开源许可证类型
|
||||
"author": "XCC", // 项目作者
|
||||
|
||||
"type": "module", // 使用 ES Module 模块系统
|
||||
|
||||
"main": "./.build/build.js", // 项目入口文件
|
||||
|
||||
// npm 脚本命令配置
|
||||
"scripts": {
|
||||
"backend":"cd ./backend && npm run build",
|
||||
"upx":".\\.build\\upx.exe .\\backend\\dist\\core.exe",
|
||||
"tauri":"cd ./front && npm run tauri build",
|
||||
"back2front":"node b2f.js b2f",
|
||||
"build2root":"node b2f.js b2r",
|
||||
"build":"npm run backend && npm run upx && npm run back2front && npm run tauri && npm run build2root"
|
||||
"backend": "cd ./backend && npm run build", // 构建后端项目
|
||||
"upx": ".\\.build\\upx.exe .\\backend\\dist\\core.exe", // 使用 UPX 压缩后端可执行文件
|
||||
"tauri": "cd ./front && npm run tauri build", // 构建前端 Tauri 应用
|
||||
"back2front": "node b2f.js b2f", // 将后端文件复制到前端目录
|
||||
"build2root": "node b2f.js b2r", // 将安装包移动到根目录
|
||||
"build": "npm run backend && npm run upx && npm run back2front && npm run tauri && npm run build2root" // 完整构建流程
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user