GithubHelp home page GithubHelp logo

xuetengfei / vue3-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ywanzhou/vue3-template

1.0 1.0 0.0 3.69 MB

一个 Vue3 + TS + Vite + Element-Plus 开箱即用的企业级开发模板。

License: MIT License

Shell 0.30% JavaScript 7.36% TypeScript 58.49% CSS 0.14% HTML 0.57% Handlebars 0.51% Vue 32.63%

vue3-template's Introduction

vue3 template

一个 Vue3 + TS + Vite + Element-Plus 开箱即用的企业级开发模板。

🎉有点用的小特性

  1. 这个是 Vue3.2的模板
  2. 支持 Vite
  3. UI框架是 Element-Plus 它已经支持暗黑模式
  4. CSS框架是 TailwindCSS
  5. 状态管理是 Pinia
  6. ESlint+Prettier 已经配置完成
  7. Git 提交前验证以及提交规范已做好
  8. 封装的比较完善的 axios,有一丢丢的学习成本
  9. Vue 和 VueRouter 的 API 自动引入,你还可以配置更多的 API 自动引入
  10. 封装了一个 useRequest,让接口请求变得更加简单
  11. 自带一个基础版本的动态路由,可以用作参考
  12. 这个模板比较干净,需要你删除的的东西很少,也就是说需要自己编写的很多
  13. 自带 Plop 脚手架,创建同类型文件会更快

🐉clone

这个是创建项目的第一步,可以按照我写的,你也可以随意发挥~

方式一:点击Use this template按钮,直接使用这个模板;

方式二:使用 git clone 命名,命令如下:

git clone https://github.com/ywanzhou/vue3-template.git

方式三:自行发挥~。

✨启动项目

这里我使用的包管理工具时npm,node版本大于 16.9.0。使用 npm 的主要原因是适应大多数人,毕竟 yarn 和 pnpm 需要安装,也是有些学习成本的;如果介意可以自行更换包管理工具。

现在开始正式启动这个项目

  1. 安装依赖
npm install # 或者 npm i 或者 yarn
  1. 开发过程
npm run dev # 运行

npm run dev:open # 自动打开浏览器
npm run dev:host # 添加 --host

npm run dev:host:open # 自动打开浏览器并添加 --host
  1. 打包编译
npm run build
  1. 预览
npm run preview
  1. lint代码并格式化
npm run lint

📝有关的文章

📖使用说明

待更新

🍚License

vue3-template is open source software licensed as MIT

vue3-template's People

Contributors

fengyangfifa avatar markthree avatar ywanzhou avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.