No description
| src-electron | ||
| src-vue | ||
| .gitignore | ||
| build.mjs | ||
| bun.lock | ||
| clone.sh | ||
| config.example.js | ||
| package.json | ||
| README.md | ||
| start.js | ||
template-bun-electron-vue-vite
Opinionated Bun 1.x + Electron 38.x + Vue 3.x + Vite 7.x template
Specs
process.env.NODE_ENVavailable 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&buildscripts- 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
