You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
KaKi87 533f71b21b 🐛 Fix build script as per 5c294a1 2 months ago
src-electron 🚚 Split 'src' directory into 'src-electron' & 'src-vue' directories 7 months ago
src-vue Add HTML template 2 months ago
.gitignore 💬 As per 2982df6 & 3876d57 2 months ago
README.md Add random development server port 2 months ago
build.mjs 🐛 Fix build script as per 5c294a1 2 months ago
clone.sh 💬 As per 2982df6 & 3876d57 2 months ago
config.example.js Add HTML template 2 months ago
package.json Add HTML template 2 months ago
start.js Add HTML template 2 months ago
yarn.lock Add HTML template 2 months ago

README.md

template-electron20-vue3-vite3

Opinionated Electron 20.x + Vue 3.x + Vite 3.x template

Specs

  • process.env.NODE_ENV available from renderer script
  • Configurable
    • title & menu bar visibility
    • icon
    • CORS
    • spellcheck
  • Developer-friendly
  • 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-electron20-vue3-vite3/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-electron20-vue3-vite3.git hello-world
cd hello-world
rm -r .git
git init
git add .
git commit -m ":tada: Initial commit"

Install dependencies : yarn install

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

Usage

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

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

Develop everything inside src-electron & src-vue