Go to file
2022-06-16 19:18:07 +08:00
.github misc: fix ci & add doc links 2022-04-20 00:18:29 +08:00
.vscode chore: update vscode recommendations 2022-05-04 16:48:13 +08:00
electron-main add electron-main/ 2022-06-14 20:21:14 +08:00
electron-preload refactor: optimize code 2022-06-14 21:13:10 +08:00
public add electron-vite-vue.gif, node.png 2022-06-14 20:29:53 +08:00
src fix: file name 2022-06-15 22:03:30 +08:00
.gitignore update 2022-06-14 21:14:21 +08:00
CHANGELOG.md log:v2.0.0 2022-06-14 20:14:56 +08:00
electron-builder.json5 json -> json5 2022-04-12 09:20:42 +08:00
index.html template-vue-ts 2022-06-13 22:10:18 +08:00
LICENSE chore: license 2021-11-04 14:26:18 +08:00
package.json v2.0.0 2022-06-16 18:59:56 +08:00
README.md docs: update 2022-04-28 07:50:04 +08:00
README.zh-CN.md docs: update 2022-04-26 09:19:55 +08:00
tsconfig.json template-vue-ts 2022-06-13 22:10:18 +08:00
tsconfig.node.json template-vue-ts 2022-06-13 22:10:18 +08:00
types.d.ts rename 2022-02-08 11:13:34 +08:00
vite.config.ts feat: remove dist before run build 2022-06-15 21:47:33 +08:00

electron-vite-vue

awesome-vite Netlify Status GitHub license GitHub stars GitHub forks

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 structurereal flexible
🖥 It's easy to implement multiple windows

Quick Start

npm create electron-vite

electron-vite-vue.gif

Debug

electron-vite-react-debug.gif

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++)