No description
Find a file
2025-10-30 19:30:33 +01:00
src-electron Add 'onReady' scripts 2025-10-30 18:54:42 +01:00
src-vue Add 'onReady' scripts 2025-10-30 18:54:42 +01:00
.gitignore 🙈 Unignore 'config.js' 2025-10-30 19:30:33 +01:00
build.mjs ♻️ As per d26e8e7 2025-10-27 14:45:40 +01:00
bun.lock 📝 Update README & rename package 2025-10-30 19:25:43 +01:00
clone.sh 📝 Update README & rename package 2025-10-30 19:25:43 +01:00
config.example.js Add 'isWebviewEnabled' config feature 2025-10-27 15:27:46 +01:00
package.json 📝 Update README & rename package 2025-10-30 19:25:43 +01:00
README.md 📝 Update README & rename package 2025-10-30 19:25:43 +01:00
start.js 🎨 Update indentation 2025-10-30 18:55:54 +01:00

template-bun-electron-vue-vite

Opinionated Bun 1.x + Electron 38.x + Vue 3.x + Vite 7.x template

Specs

  • process.env.NODE_ENV available from renderer script
  • Configurable
    • title & menu bar visibility
    • icon
    • CORS
    • spellcheck
  • Developer-friendly
    • Random dev port
    • Automatically opening DevTools
    • Default detached DevTools mode
    • Includes Vue DevTools
    • Includes destyle.css
  • Cross-platform
    • start & build scripts
    • builds (AppImage for Linux, NSIS for Windows, DMG for Mac)
  • Fully dark app & DevTools
  • Shows window once ready

Installation

Automated

curl -s https://git.kaki87.net/KaKi87/template-bun-electron-vue-vite/raw/branch/master/clone.sh | bash -s hello-world

Manual

Clone existing repo & create new repo :

git clone --recurse-submodules https://git.kaki87.net/KaKi87/template-bun-electron-vue-vite.git hello-world
cd hello-world
rm -r .git
git init
git add .
git commit -m ":tada: Initial commit"

Install dependencies : bun install

Create configuration file : cp config.example.js config.js

Usage

Start development server using bun start (outputs temporary files in dist)

Create production build using bun build (outputs production file in build)

Develop everything inside src-electron & src-vue