2ming / electron-vite-vue

๐Ÿฅณ Real simple Electron + Vite + Vue boilerplate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

electron-vite-vue

awesome-vite Netlify Status 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

่ฏทๆˆ‘ๅ–ๆฏไธ‹ๅˆ่Œถ ๐Ÿฅณ

About

๐Ÿฅณ Real simple Electron + Vite + Vue boilerplate.

License:MIT License


Languages

Language:TypeScript 58.9%Language:Vue 16.6%Language:JavaScript 16.1%Language:Dockerfile 5.1%Language:HTML 3.2%