No Description

xiongzhu a71f7e1be7 . 3 years ago
.github 034ced0741 first commit 3 years ago
.vscode 034ced0741 first commit 3 years ago
build d85d27bbb4 . 3 years ago
packages a71f7e1be7 . 3 years ago
scripts d3026bff83 . 3 years ago
test 278c3f3f99 . 3 years ago
.gitignore 4b87c384aa . 3 years ago
.prettierrc.js 034ced0741 first commit 3 years ago
.simple-git-hooks.cjs 034ced0741 first commit 3 years ago
Dockerfile 034ced0741 first commit 3 years ago
LICENSE 034ced0741 first commit 3 years ago
README.md 034ced0741 first commit 3 years ago
README.zh-CN.md 034ced0741 first commit 3 years ago
electron-builder.json 4d5a716493 . 3 years ago
nano-staged.mjs 278c3f3f99 . 3 years ago
package.json d85d27bbb4 . 3 years ago
playwright.config.js 278c3f3f99 . 3 years ago
volar.config.js 034ced0741 first commit 3 years ago
yarn.lock 034ced0741 first commit 3 years ago

README.md

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 structure,real 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++)