Skip to content

Zerounary/vtron

 
 

Repository files navigation

Boilerplate for vite-plugin-electron

screenshort.png

Instructions

Vue3 + Vite + electron18 + vitest + pinia + vue-router4 + commitizen + windicss + electron-store + electron-log + electron-updater

Plugins: vite-plugin-electron + vite-plugin-pages + vite-plugin-windicss + pinia-plugin-persist

Installation

pnpm i

if you haven't installed pnpm yet, you should install it first.

npm i -g pnpm

Router

use vite-plugin-pages for router.

more usecase take this

https://github.com/hannoeru/vite-plugin-pages/tree/main/examples/vue

Test

https://cn.vitest.dev/guide

use vitest to test this project.

npm test

Commit

npm run commit

configurate

https://www.electron.build/configuration/configuration

you can use electron-builder.json to configurate electron-builder

Build

yarn build

Release

npm run release

auto update CHAGNELOG.md.

About

Integrate Vite and Electron

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 71.5%
  • Vue 21.5%
  • JavaScript 5.3%
  • HTML 1.1%
  • CSS 0.6%