# vue3-ts-Element-Plus **Repository Path**: beginner-x/vue3-ts-element-plus ## Basic Information - **Project Name**: vue3-ts-Element-Plus - **Description**: 技术栈:vue3-ts-vite-Element-Plus-Tailwindcss - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-08-18 - **Last Updated**: 2024-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Vue Pure Admin

## 简介 是一个中后台模版。使用了`vue3`,`vite4`,`TypeScript`等主流技术开发,开箱即用的中后台前端解决方案,也可用于学习参考。 ## 特性 - **最新技术栈**:使用 Vue3/vite4 等前端前沿技术开发 - **TypeScript**: 应用程序级 JavaScript 的语言 - **Mock 数据** 内置 Mock 数据方案 - **权限** 内置完善的动态路由权限生成方案 - **组件** 二次封装了多个常用的组件 ## 准备 - [node](http://nodejs.org/) 和 [git](https://git-scm.com/) -项目开发环境 - [Vite](https://vitejs.dev/) - 熟悉 vite 特性 - [Vue3](https://v3.vuejs.org/) - 熟悉 Vue 基础语法 - [TypeScript](https://www.typescriptlang.org/) - 熟悉`TypeScript`基本语法 - [Es6+](http://es6.ruanyifeng.com/) - 熟悉 es6 基本语法 - [Vue-Router-Next](https://next.router.vuejs.org/) - 熟悉 vue-router 基本使用 - [Element-Plus](https://doc-archive.element-plus.org/#/zh-CN) - ui 基本使用 - [Mock.js](https://github.com/nuysoft/Mock) - mockjs 基本语法 ## 开发环境 `node` 版本应不小于 `16` ,`pnpm` 版本应不小于 `6` 如果您还没安装 `pnpm`,请执行下面命令进行安装(`mac` 用户遇到安装报错请在命令前加上 `sudo`) ```bash npm install -g pnpm ``` ## 安装使用 - 获取项目代码 ```bash git clone https://gitee.com/yiming_chang/pure-admin-backend.git ``` - 安装依赖 ```bash pnpm install ``` - 运行 ```bash pnpm dev ``` - 安装一个包 ```bash pnpm add 包名 ``` - 卸载一个包 ``` pnpm remove 包名 ``` - 本地环境打包预览 ```bash pnpm preview:build ``` - 预发布打包 ```bash pnpm build:staging ``` - 正式环境打包 ```bash pnpm build ``` - 打包分析 ```bash pnpm report ``` - 平台文件、语言分析 ```bash pnpm cloc ``` ## 项目地址 - [vue-vben-admin](https://github.com/anncwb/vue-vben-admin) - 完整版 - [vue-vben-admin-thin-next](https://github.com/anncwb/vben-admin-thin-next) - 简化版 ## 代码提交 - 删除项目中的.git文件(要重置git配置时用到,否则可忽略) - 初始化git配置(要重置git配置时用到,否则可忽略) ```bash git init ``` - 添加自己的公司 git 源地址 ```bash # up 为源名称,可以随意设置 # gitUrl为开源最新代码 git remote add up gitUrl; eg: git remote add origin https://github.com/xxxxxx git remote add gitee-origin https://github.com/xxxxxx ``` - 提交代码到自己公司 git ```bash # 提交代码到自己公司 # main为分支名 需要自行根据情况修改 git push up main eg: git push origin main git push gitee-origin main # 同步公司的代码 # main为分支名 需要自行根据情况修改 git pull up main eg: git pull origin main git pull gitee-origin main ``` ## Git 提交规范 - 参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular)) - `feat` 增加新功能 - `fix` 修复问题/BUG - `style` 代码风格相关无影响运行结果的 - `perf` 优化/性能提升 - `refactor` 重构 - `revert` 撤销修改 - `test` 测试相关 - `docs` 文档/注释 - `chore` 依赖更新/脚手架配置修改等 - `workflow` 工作流改进 - `ci` 持续集成 - `types` 类型定义文件更改 - `wip` 开发中 ## 浏览器支持 本地开发推荐使用`Chrome 80+` 浏览器 支持现代浏览器, 不支持 IE | [ Edge](http://godban.github.io/browsers-support-badges/)
IE | [ Edge](http://godban.github.io/browsers-support-badges/)
Edge | [Firefox](http://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](http://godban.github.io/browsers-support-badges/)
Chrome | [Safari](http://godban.github.io/browsers-support-badges/)
Safari | | :-: | :-: | :-: | :-: | :-: | | not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions | ## 相关仓库 如果这些插件对你有帮助,可以给一个 star 支持下 - [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - 用于本地及开发环境数据 mock - [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - 用于 html 模版转换及压缩 - [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) - 用于组件库样式按需引入 - [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - 用于在线切换主题色等颜色相关配置 - [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - 用于打包压缩图片资源 - [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - 用于打包输出.gz|.brotil 文件 - [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - 用于快速生成 svg 雪碧图