Go to file
2022-04-08 09:22:23 +08:00
.github feat(ci): add github dependabot 2022-03-28 00:59:26 +08:00
.vscode refactor: better debug experience 2022-03-15 08:35:11 +08:00
packages Merge pull request #102 from suoutsky/patch-4 2022-04-06 14:56:06 +08:00
scripts support debug 2022-03-15 08:34:36 +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.json Update electron-builder.json 2022-02-18 09:26:54 +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 Merge pull request #91 from electron-vite/dependabot/npm_and_yarn/vite-2.9.1 2022-04-08 07:32:13 +08:00
package.json Merge pull request #91 from electron-vite/dependabot/npm_and_yarn/vite-2.9.1 2022-04-08 07:32:13 +08:00
playwright.config.ts feat(test): add playwright e2e test tool 2022-03-05 19:39:06 +08:00
README.md Update README.md 2022-04-08 09:22:23 +08:00
README.zh-CN.md docs: update docs 2022-04-03 12:59:08 +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 GitHub license GitHub stars GitHub forks

English | 简体中文

🥳 Real simple Electron + Vue + Vite boilerplate.

Quick Start

quick-start

Overview

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. 😋

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

Main window

请我喝杯下午茶 🥳