English | ็ฎไฝไธญๆ
๐ฅณ Real simple Electron
+ Vue
+ Vite
boilerplate.
This is a Vite
-integrated Electron
template built with simplification in mind.
The repo contains only the most basic files, dependencies and functionalities to ensure flexibility for various scenarios.
You need a basic understanding of Electron
and Vite
to get started. But that's not mandatory - you can learn almost all the details by reading through the source code. Trust me, this repo is not that complex. ๐
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
โ
Used in Main-process ๐ electron-vite-boilerplate
Used in Renderer-process ๐ electron-vite-boilerplate/tree/nodeIntegration
ES Modules
Native Addons