Nenhuma descrição

xiongzhu 034ced0741 first commit 3 anos atrás
.github 034ced0741 first commit 3 anos atrás
.vscode 034ced0741 first commit 3 anos atrás
packages 034ced0741 first commit 3 anos atrás
scripts 034ced0741 first commit 3 anos atrás
test 034ced0741 first commit 3 anos atrás
.gitignore 034ced0741 first commit 3 anos atrás
.prettierrc.js 034ced0741 first commit 3 anos atrás
.simple-git-hooks.cjs 034ced0741 first commit 3 anos atrás
CHANGELOG.md 034ced0741 first commit 3 anos atrás
Dockerfile 034ced0741 first commit 3 anos atrás
LICENSE 034ced0741 first commit 3 anos atrás
README.md 034ced0741 first commit 3 anos atrás
README.zh-CN.md 034ced0741 first commit 3 anos atrás
electron-builder.json5 034ced0741 first commit 3 anos atrás
nano-staged.mjs 034ced0741 first commit 3 anos atrás
package-lock.json 034ced0741 first commit 3 anos atrás
package.json 034ced0741 first commit 3 anos atrás
playwright.config.ts 034ced0741 first commit 3 anos atrás
tsconfig.json 034ced0741 first commit 3 anos atrás
types.d.ts 034ced0741 first commit 3 anos atrás
volar.config.js 034ced0741 first commit 3 anos atrás
yarn.lock 034ced0741 first commit 3 anos atrás

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