https://github.com/togetheryear/evv
Electron-Vue-Vite-Windows
https://github.com/togetheryear/evv
Last synced: 6 months ago
JSON representation
Electron-Vue-Vite-Windows
- Host: GitHub
- URL: https://github.com/togetheryear/evv
- Owner: TogetherYear
- License: mit
- Created: 2022-11-10T13:33:29.000Z (over 2 years ago)
- Default Branch: Together
- Last Pushed: 2024-10-29T09:45:02.000Z (7 months ago)
- Last Synced: 2024-10-29T11:47:38.514Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 11.8 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Vue 3 + Typescript + Electron + Vite + ( ...args )
## 只有最基本的结构 其他发挥你自己的想法
### 安装
```
npm install
```### 开发
```
npm run dev
```### 打包
```
npm run build
```### 额外说明
```
需要底层操作的通过 Ipc 发送给主进程去处理 别用渲染进程处理 ( 为了逻辑清晰 当然不强求 )在渲染进程我没有配置 node 和 electron 的方法 ( 别用 ) 在主进程用 preload 暴露方法给渲染进程用 ( 在渲染进程自己填写类型说明 在 Renderer.d.ts )
``````
环境变量 electron 在 Need/Configs 中配置 .env.development 和.env.production 是前端页面使用的 前端页面使用的变量添加后在 env.d.ts 中添加说明确保有代码提示
``````
只适配 windows 其他暂不考虑
``````
默认打包后本地服务器端口是 34290 可修改 避免重复
``````
默认深度链接协议是 evv-chips 可修改 避免重复
``````
在 dependencies 只写入需要编译成 exe 额外的包 比如 .node 等无法打包的库 其余皆写入 devDependencies 并且在 Build/Server.ts 的 external 中添加 ( 即 打包需要的 用 -S 不然一律用 -D )
```