mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 03:46:35 +08:00
younglei
760c69ecef
Revert "fix: keep the latest version of Vite"
This reverts commit 0a17a2a1b0392a4ba3194cb47444cee0687d6105.
electron-vite-vue
🥳 Really simple Electron
+ Vue
+ Vite
boilerplate.
Features
📦 Out of the box
🎯 Based on the official vue-ts template, less invasive
🌱 Extensible, really simple directory structure
💪 Support using Node.js API in Electron-Renderer
🔩 Support C/C++ native addons
🖥 It's easy to implement multiple windows
Quick Start
npm create electron-vite
Debug
Directory
+ ├─┬ electron
+ │ ├─┬ main
+ │ │ └── index.ts entry of Electron-main
+ │ └─┬ preload
+ │ └── index.ts entry of Electron-preload
├─┬ src
│ └── main.ts entry of Electron-renderer
├── index.html
├── package.json
└── vite.config.ts
🚨 dependencies
vs devDependencies
Put Node.js packages in dependencies
🚨 e.g.
electron-store
sqlite3
serilaport
mongodb
- ...others Node.js packages
Put Web packages in devDependencies
🚨 e.g.
vue
vue-router
vuex
pinia
element-plus
ant-design-vue
axios
- ...others Web packages
TODO: ESM packages
node-fetch
execa
- ...others ESM packages
See more 👉 dependencies vs devDependencies
Languages
TypeScript
72.7%
Vue
13.7%
CSS
10.3%
HTML
3.3%