feat: 完成 electron dev/preview/build
正在显示
... | @@ -27,9 +27,11 @@ | ... | @@ -27,9 +27,11 @@ |
"serve": "npm run dev", | "serve": "npm run dev", | ||
"dev": "vite", | "dev": "vite", | ||
"dev:app": "electron-vite dev", | "dev:app": "electron-vite dev", | ||
"build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts", | "preview:app": "electron-vite preview", | ||
"build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts", | "build:app": "electron-vite build", | ||
"build:preview": "cross-env vite build --mode preview && esno ./build/script/postBuild.ts", | "build": "vite build", | ||
"build:test": "vite build --mode test", | |||
"build:preview": "vite build --mode preview", | |||
"build:no-cache": "pnpm clean:cache && npm run build", | "build:no-cache": "pnpm clean:cache && npm run build", | ||
"report": "cross-env REPORT=true npm run build", | "report": "cross-env REPORT=true npm run build", | ||
"type:check": "vue-tsc --noEmit --skipLibCheck", | "type:check": "vue-tsc --noEmit --skipLibCheck", | ||
... | @@ -48,7 +50,11 @@ | ... | @@ -48,7 +50,11 @@ |
"test:br": "npx http-server dist --cors --brotli -c-1", | "test:br": "npx http-server dist --cors --brotli -c-1", | ||
"reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", | "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", | ||
"prepare": "husky install", | "prepare": "husky install", | ||
"gen:icon": "esno ./build/generate/icon/index.ts" | "gen:icon": "esno ./build/generate/icon/index.ts", | ||
"postinstall": "electron-builder install-app-deps", | |||
"build:win": "npm run build:app && electron-builder --win --config", | |||
"build:mac": "npm run build:app && electron-builder --mac --config", | |||
"build:linux": "npm run build:app && electron-builder --linux --config" | |||
}, | }, | ||
"config": { | "config": { | ||
"commitizen": { | "commitizen": { | ||
... | @@ -63,6 +69,7 @@ | ... | @@ -63,6 +69,7 @@ |
"@iconify/iconify": "^3.1.0", | "@iconify/iconify": "^3.1.0", | ||
"@logicflow/core": "^1.2.1", | "@logicflow/core": "^1.2.1", | ||
"@logicflow/extension": "^1.2.1", | "@logicflow/extension": "^1.2.1", | ||
"@purge-icons/generated": "^0.9.0", | |||
"@stomp/stompjs": "^7.0.0", | "@stomp/stompjs": "^7.0.0", | ||
"@vue/runtime-core": "^3.2.47", | "@vue/runtime-core": "^3.2.47", | ||
"@vue/shared": "^3.2.47", | "@vue/shared": "^3.2.47", | ||
... | @@ -109,13 +116,12 @@ | ... | @@ -109,13 +116,12 @@ |
"@electron-toolkit/tsconfig": "^1.0.1", | "@electron-toolkit/tsconfig": "^1.0.1", | ||
"@electron/notarize": "^1.2.3", | "@electron/notarize": "^1.2.3", | ||
"@iconify/json": "^2.2.40", | "@iconify/json": "^2.2.40", | ||
"@purge-icons/generated": "^0.9.0", | |||
"@types/codemirror": "^5.60.7", | "@types/codemirror": "^5.60.7", | ||
"@types/crypto-js": "^4.1.1", | "@types/crypto-js": "^4.1.1", | ||
"@types/fs-extra": "^11.0.1", | "@types/fs-extra": "^11.0.1", | ||
"@types/inquirer": "^9.0.3", | "@types/inquirer": "^9.0.3", | ||
"@types/intro.js": "^5.1.1", | "@types/intro.js": "^5.1.1", | ||
"@types/lodash": "^4.14.191", | "@types/lodash": "^4.14.192", | ||
"@types/lodash-es": "^4.17.7", | "@types/lodash-es": "^4.17.7", | ||
"@types/mockjs": "^1.0.7", | "@types/mockjs": "^1.0.7", | ||
"@types/node": "^18.15.10", | "@types/node": "^18.15.10", | ||
... | @@ -126,8 +132,8 @@ | ... | @@ -126,8 +132,8 @@ |
"@types/sockjs-client": "^1.5.1", | "@types/sockjs-client": "^1.5.1", | ||
"@types/sortablejs": "^1.15.1", | "@types/sortablejs": "^1.15.1", | ||
"@types/stompjs": "^2.3.5", | "@types/stompjs": "^2.3.5", | ||
"@typescript-eslint/eslint-plugin": "^5.56.0", | "@typescript-eslint/eslint-plugin": "^5.57.0", | ||
"@typescript-eslint/parser": "^5.56.0", | "@typescript-eslint/parser": "^5.57.0", | ||
"@vitejs/plugin-legacy": "^4.0.2", | "@vitejs/plugin-legacy": "^4.0.2", | ||
"@vitejs/plugin-vue": "^4.1.0", | "@vitejs/plugin-vue": "^4.1.0", | ||
"@vitejs/plugin-vue-jsx": "^3.0.1", | "@vitejs/plugin-vue-jsx": "^3.0.1", | ||
... | ... |
差异被折叠。
点击展开。
请
注册
或者
登录
后发表评论