using vue-cli4 and Electron built a modular template, including vue-router, i18n, axios, electron-builder and more. / 用vue-cli4和Electron 构建模块化的桌面应用程序模板,集成了常用插件。
⭐ Using vue-cli 4 and Electron 11.x built a modular desktop application template.
The directory structure is clear and the main process (electron) is separated from the rendering process (vue), which is easy to extend and manage.
Fast packaging, one-click multi-language switch. Use custom borderless windows, has added easy-to-use svg icon components, and axios , vuex, vue-router, vue-i18n and global bus bus, out of the box, project extremely fast start.
The project does not add any third-party ui libraries, so you can add as many as you like.
🍬 Clone
git clone https://github.com/Pure-Peace/vue-cli-electron-template
cd vue-cli-electron-template
🍙 Install
yarn
npm install
🌽 Run
yarn go
npm run go
🍭 Build
yarn buildapp
npm run buildapp
src/main
:Main process (Electron).src/renderer
:Renderer process (Vue).vue.config.js
: Includes Path alias、electron-builder、i18n And app configurations.src/backend
: Api backend, and axios configurations.src/locales
:i18n Translation file directory.src/main/events
:Main process (Electron) ipc and app events.Hancel Lin |
---|
Welcome issues