1 Star 2 Fork 1

郭某人 / work-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

work-template

GitHub license GitHub stars GitHub forks

介绍 📖

work-template 一款基于 Vue3TypeScriptVite5vue-routerPiniaElement-Plusunocss 开源的模板框架,使用目前最新技术栈开发。在一定程度上节省您的开发效率。另外本项目还封装了一些常用组件、Hooks、指令、路由、国际化等功能。

项目功能 🔨

  • 使用 Vue3 + TypeScript 开发,单文件组件< script setup >
  • 采用 Vite5 作为项目开发、打包工具(生成包预览、跨域代理、代码兼容……)
  • 使用 Pinia 替代 Vuex,轻量、简单、易用, 集成 Pinia 持久化插件
  • 使用 TypeScript 对 Axios 整个二次封装 (请求拦截、常用请求封装……)
  • 使用 VueRouter 进行路由权限拦截、路由懒加载
  • 支持 Element 组件和页面的 i18n 国际化以及黑暗模式
  • 常用自定义指令开发(复制、水印、拖拽、节流、防抖、长按……)
  • 常用自定义 hooks(下载文件、获取时间、语言切换……)
  • 使用 Prettier 统一格式化代码,集成 Eslint 代码校验规范
  • 打包优化(配置 Gzip 打包、分包策略、CDN 引入……)

安装使用步骤 📔

  • Clone:
# Gitee
git clone https://gitee.com/Yolo__00/work-template.git

# GitHub
git clone https://github.com/Yolo-00/work-template.git
  • Install:
yarn install

# yarn install 安装失败,请升级 nodejs 到 16 以上
  • Run:
yarn dev
  • Build:
# 开发环境
yarn build:dev

# 测试环境
yarn build:test

# 生产环境
yarn build:prod

如何贡献

非常欢迎您的加入!提一个 Issue 或者提交一个 Pull Request

Pull Request:

  1. Fork 代码!
  2. 创建自己的分支: git checkout -b feat/xxxx
  3. 提交您的修改: git commit -am 'feat(function): add xxxxx'
  4. 推送您的分支: git push origin feat/xxxx
  5. 提交pull request

Git 贡献提交规范

参考 vue 规范 (Angular)

  • feat 增加新功能
  • fix 修复问题/BUG
  • style 代码风格相关无影响运行结果的
  • perf 优化/性能提升
  • refactor 重构
  • revert 撤销修改
  • test 测试相关
  • docs 文档/注释
  • chore 依赖更新/脚手架配置修改等
  • workflow 工作流改进
  • ci 持续集成
  • types 类型定义文件更改
  • wip 开发中

Star

非常感谢留下星星的好心人,感谢您的支持 ❤️

Stargazers repo roster for Yolo-00/work-template

Fork

瞧,那些 小哥哥小姐姐 认真 学习 的样子真滴是 哎呦不错哦 ❤️

Forkers repo roster for Yolo-00/work-template

MIT License Copyright (c) 2022 Halsey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

work-template 一款基于 Vue3、TypeScript、Vite4、vue-router4、Pinia、Element-Plus、tailwindcss 开源的模板框架,使用目前最新技术栈开发。在一定程度上节省您的开发效率。另外本项目还封装了一些常用组件、Hooks、指令、路由、国际化等功能。 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
TypeScript
1
https://gitee.com/Yolo__00/work-template.git
git@gitee.com:Yolo__00/work-template.git
Yolo__00
work-template
work-template
master

搜索帮助