Go to file
2022-04-28 07:50:04 +08:00
.github misc: fix ci & add doc links 2022-04-20 00:18:29 +08:00
.vscode refactor: better debug experience 2022-03-15 08:35:11 +08:00
packages chore: comment 2022-04-28 07:49:47 +08:00
scripts fix: correct watch value type 2022-04-15 07:35:54 +08:00
test feat(test): add playwright e2e test tool 2022-03-05 19:39:06 +08:00
.gitignore add .debug.env 2022-03-15 08:33:47 +08:00
.simple-git-hooks.cjs fix(cicd): build stage cicd fix 2022-03-16 10:21:25 +08:00
CHANGELOG.md update 2022-01-27 11:29:53 +08:00
Dockerfile feat(ci): add github action 🔨 2022-02-18 00:23:52 +08:00
electron-builder.json5 json -> json5 2022-04-12 09:20:42 +08:00
LICENSE chore: license 2021-11-04 14:26:18 +08:00
nano-staged.mjs feat(git-hooks): add nano-stage & git hooks 2022-03-06 18:47:31 +08:00
package-lock.json misc: fix ci & add doc links 2022-04-20 00:18:29 +08:00
package.json misc: fix ci & add doc links 2022-04-20 00:18:29 +08:00
playwright.config.ts feat(test): add playwright e2e test tool 2022-03-05 19:39:06 +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 tsconfig.json --skipLibCheck 2022-01-17 18:11:08 +08:00
types.d.ts rename 2022-02-08 11:13:34 +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++)