From 82f452193f5b0065a3b73087c066aa03a45ebcc5 Mon Sep 17 00:00:00 2001 From: fm453 <1280880631@qq.com> Date: Mon, 9 Sep 2024 10:24:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 86 +++++++++++++++++++++------------------------------- README_ZH.md | 31 +++++++++++-------- 2 files changed, 53 insertions(+), 64 deletions(-) diff --git a/README.md b/README.md index 4e53cfb..a863e47 100644 --- a/README.md +++ b/README.md @@ -1,62 +1,44 @@ -# electron-vite-template +# Hi-Sass-Frame -[Open in Visual Studio Code](https://open.vscode.dev/umbrella22/electron-vite-template/) -![GitHub Repo stars](https://img.shields.io/github/stars/umbrella22/electron-vite-template) -[![vue](https://img.shields.io/badge/vue-3.4.21-brightgreen.svg)](https://github.com/vuejs/vue-next) -[![vite](https://img.shields.io/badge/vite-5.2.7-brightgreen.svg)](https://github.com/vitejs/vite) -[![element-ui](https://img.shields.io/badge/element-plus-brightgreen.svg)](https://www.npmjs.org/package/element-plus) -[![electron](https://img.shields.io/badge/electron-29.1.6-brightgreen.svg)](https://github.com/electron/electron) -[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/umbrella22/electron-vite-template/blob/master/LICENSE) +[![vue](https://img.shields.io/badge/vue-3.4.21-brightgreen.svg)](https://cn.vuejs.org/guide/quick-start) +[![vite](https://img.shields.io/badge/vite-5.4.1-brightgreen.svg)](https://www.vitejs.net/guide/) +[![element-ui](https://img.shields.io/badge/element-plus-brightgreen.svg)](https://cn.element-plus.org/zh-CN/) +[![electron](https://img.shields.io/badge/electron-32.0.1-brightgreen.svg)](https://www.electronjs.org/zh/docs/latest/tutorial/quick-start) +[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://gitea.hiluker.com/fm453/hi-sass-frame/src/branch/main/LICENSE) -# Installation -You can choose to clone the project or fork repository, or download the zip file directly. It is recommended to clone the repository so that you can receive the latest patches. - -To run a project, you need to have **node version 18** or higher and **use npm as your dependency management tool** - -[Document (Chinese only)](https://umbrella22.github.io/electron-vue-template-doc/) - -[For Chinese Developers](/README_ZH.md) - -[![Build TEST](https://github.com/umbrella22/electron-vite-template/actions/workflows/Build.yml/badge.svg)](https://github.com/umbrella22/electron-vite-template/actions/workflows/Build.yml) - -# Build Setup +--- +### 请确保您的 node 版本大于等于 18. +- vue3.*等版本,要求node.js版本高于18 +#### 如何安装 +- 推荐使用yarn安装(我开发过程用的是yarn来管理包) ```bash -# Clone this repository -$ git clone https://github.com/umbrella22/electron-vite-template.git -# Go into the repository -$ cd electron-vite-template -# install dependencies -$ npm install - -# serve with hot reload at localhost:9080 -$ npm run dev - -# build electron application for production -$ npm run build +yarn +#或者 +yarn add +``` +- 如果你要用npm,可参考下方,使用淘宝镜像源,速度可能会快一些) +```bash +npm config edit +# 该命令会打开npm的配置文件,请在空白处添加 +# registry=https://registry.npmmirror.com +# ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ +# ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/ +# 然后关闭该窗口,重启命令行. +npm install +``` +# 运行脚本 +```bash +# 启动之后,会在9080端口监听 +npm run dev +# build命令在不同系统环境中,需要的的不一样,需要自己根据自身环境进行配置 +# 具体可在package.json中查阅 +npm run build ``` --- - -# Function list - -[x] Auto update -[x] Incremental update -[x] Loading animation before startup -[x] i18n - -# Built-in - -- [vue-router](https://next.router.vuejs.org/index.html) -- [pinia](https://pinia.esm.dev/) -- [electron](http://www.electronjs.org/docs) -- electron-updater -- typescript - -# Note - -- [gitee](https://gitee.com/Zh-Sky/electron-vite-template) is only for domestic users to pull code,from github to synchronize,please visit github for PR -- **Welcome to Issues and PR** +# [文件目录说明](DIR.md) +# [更新日志](./CHANGELOG.md) diff --git a/README_ZH.md b/README_ZH.md index 6039ad1..a863e47 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -1,19 +1,24 @@ -# Electron-Vite-template +# Hi-Sass-Frame -![GitHub Repo stars](https://img.shields.io/github/stars/umbrella22/electron-vite-template) -[![vue](https://img.shields.io/badge/vue-3.2.23-brightgreen.svg)](https://github.com/vuejs/vue-next) -[![vite](https://img.shields.io/badge/vite-3.0.3-brightgreen.svg)](https://github.com/vitejs/vite) -[![element-ui](https://img.shields.io/badge/element-plus-brightgreen.svg)](https://www.npmjs.org/package/element-plus) -[![electron](https://img.shields.io/badge/electron-19.0.4-brightgreen.svg)](https://github.com/electron/electron) -[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/umbrella22/electron-vite-template/blob/master/LICENSE) +[![vue](https://img.shields.io/badge/vue-3.4.21-brightgreen.svg)](https://cn.vuejs.org/guide/quick-start) +[![vite](https://img.shields.io/badge/vite-5.4.1-brightgreen.svg)](https://www.vitejs.net/guide/) +[![element-ui](https://img.shields.io/badge/element-plus-brightgreen.svg)](https://cn.element-plus.org/zh-CN/) +[![electron](https://img.shields.io/badge/electron-32.0.1-brightgreen.svg)](https://www.electronjs.org/zh/docs/latest/tutorial/quick-start) +[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://gitea.hiluker.com/fm453/hi-sass-frame/src/branch/main/LICENSE) -[国内访问地址](https://gitee.com/Zh-Sky/electron-vite-template) --- -### 请确保您的 node 版本大于等于 16. +### 请确保您的 node 版本大于等于 18. +- vue3.*等版本,要求node.js版本高于18 #### 如何安装 - +- 推荐使用yarn安装(我开发过程用的是yarn来管理包) +```bash +yarn +#或者 +yarn add +``` +- 如果你要用npm,可参考下方,使用淘宝镜像源,速度可能会快一些) ```bash npm config edit # 该命令会打开npm的配置文件,请在空白处添加 @@ -21,13 +26,15 @@ npm config edit # ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ # ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/ # 然后关闭该窗口,重启命令行. -# 使用yarn安装 npm install - +``` +# 运行脚本 +```bash # 启动之后,会在9080端口监听 npm run dev # build命令在不同系统环境中,需要的的不一样,需要自己根据自身环境进行配置 +# 具体可在package.json中查阅 npm run build ```