mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2024-10-12 15:39:56 +08:00
3d3f5837f7
chore(deps-dev): bump electron from 18.2.0 to 19.0.1 |
||
---|---|---|
.github | ||
.vscode | ||
packages | ||
scripts | ||
test | ||
.gitignore | ||
.simple-git-hooks.cjs | ||
CHANGELOG.md | ||
Dockerfile | ||
electron-builder.json5 | ||
LICENSE | ||
nano-staged.mjs | ||
package-lock.json | ||
package.json | ||
playwright.config.ts | ||
README.md | ||
README.zh-CN.md | ||
tsconfig.json | ||
types.d.ts |
electron-vite-vue
English | 简体中文
🥳 Real simple Electron
+ Vue
+ Vite
boilerplate.
Overview
📦 Out of the box
💪 Support C/C++ addons
🔩 Support Use Electron、Node.js API in Renderer-process
🌱 Simple directory structure,real flexible
🖥 It's easy to implement multiple windows
Quick Start
npm create electron-vite
Debug
Directory
A dist
folder will be generated everytime when dev
or build
command is executed. File structure of dist
is identical to the packages
directory to avoid any potential path calculation errors.
├── dist Will be generated following the structure of "packages" directory
| ├── main
| ├── preload
| └── renderer
|
├── scripts
| ├── build.mjs Build script -> npm run build
| └── watch.mjs Develop script -> npm run dev
|
├── packages
| ├── main Main-process source code
| | └── vite.config.ts
| ├── preload Preload-script source code
| | └── vite.config.ts
| └── renderer Renderer-process source code
| └── vite.config.ts
List the modules you may use as far as possible
Used in Main-process
👉 electron-vite-boilerplate
Used in Renderer-process
👉 electron-vite-boilerplate/tree/nodeIntegration
ES Modules
Native Addons(C/C++)