Browse Source

feat: electron support

electron-v5
Netfan 11 months ago
parent
commit
30387b94a2
  1. 1
      .npmrc
  2. 3
      playground/.env
  3. 4
      pnpm-workspace.yaml

1
.npmrc

@ -1,4 +1,5 @@
registry = "https://registry.npmmirror.com" registry = "https://registry.npmmirror.com"
ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
public-hoist-pattern[]=lefthook public-hoist-pattern[]=lefthook
ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/" ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
public-hoist-pattern[]=husky public-hoist-pattern[]=husky

3
playground/.env

@ -4,6 +4,9 @@ VITE_APP_TITLE=Vben Admin
# 应用命名空间,用于缓存、store等功能的前缀,确保隔离 # 应用命名空间,用于缓存、store等功能的前缀,确保隔离
VITE_APP_NAMESPACE=vben-web-play VITE_APP_NAMESPACE=vben-web-play
# vue-router 的模式
VITE_ROUTER_HISTORY=hash
# 对store进行加密的密钥,在将store持久化到localStorage时会使用该密钥进行加密 # 对store进行加密的密钥,在将store持久化到localStorage时会使用该密钥进行加密
VITE_APP_STORE_SECURE_KEY=please-replace-me-with-your-own-key VITE_APP_STORE_SECURE_KEY=please-replace-me-with-your-own-key

4
pnpm-workspace.yaml

@ -87,6 +87,8 @@ catalog:
depcheck: ^1.4.7 depcheck: ^1.4.7
dotenv: ^16.5.0 dotenv: ^16.5.0
echarts: ^5.6.0 echarts: ^5.6.0
electron: ^35.0.3
electron-builder: ^25.1.8
element-plus: ^2.9.9 element-plus: ^2.9.9
eslint: ^9.26.0 eslint: ^9.26.0
eslint-config-turbo: ^2.5.2 eslint-config-turbo: ^2.5.2
@ -169,6 +171,8 @@ catalog:
vee-validate: ^4.15.0 vee-validate: ^4.15.0
vite: ^6.3.4 vite: ^6.3.4
vite-plugin-compression: ^0.5.1 vite-plugin-compression: ^0.5.1
vite-plugin-electron: ^0.29.0
vite-plugin-electron-renderer: ^0.14.6
vite-plugin-dts: ^4.5.3 vite-plugin-dts: ^4.5.3
vite-plugin-html: ^3.2.2 vite-plugin-html: ^3.2.2
vite-plugin-lazy-import: ^1.0.7 vite-plugin-lazy-import: ^1.0.7

Loading…
Cancel
Save