Skip to content

Latest commit

 

History

History
66 lines (39 loc) · 1.1 KB

README.md

File metadata and controls

66 lines (39 loc) · 1.1 KB

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.