Skip to content

🚀🚀✈️✈️ 技术选型:vue3、vite3、pinia、element-plus、eslint、prettier

Notifications You must be signed in to change notification settings

kongchao517/vue3-lazyly-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👀 说明

🎲 vue3-lazyly-admin是一个基于Vue3、Vite3、Pina、 ElementUi 构建的极简版中后台模板具体如下:

  • 💥使用husky设置了代码提交规范
  • 💥eslint、prettier设置代码规范
  • 💥基于axios二次封装接口请求,判定浏览器code和后端code(具体需要自己与后端约定)
  • 💥使用docker部署具体配置docker文件夹里面(后续会专出文章总结)
  • 💥基于Element二次封装后台常用Dialog、FormList、Pagination、TableList
  • 💥打包优化ElementUI按需加载、viteImagemin图片压缩(需等待时间比较久、如无严格要求可注释)、viteCompression开启Gzip压缩(服务器需同步设置)、静态分包

🙈 特性

🎏 编码风格

🔨 开发工具

📘 克隆、运行、构建

🎈 拉取代码

git clone https://github.com/kongchao517/vue3-lazyly-admin.git

🎈 安装依赖

npm i / yarn

🎈 运行

npm run dev / yarn dev

🎈 构建开发环境

npm run build:dev / yarn build:dev

🎈 构建生产环境

npm run build / yarn build

🎸 自动引入ref、reactive......

yarn add unplugin-auto-import

vite.config.js

import AutoImport from 'unplugin-auto-import/vite';
    plugins:[ AutoImport({
        dts: 'auto-imports.d.ts',
      }),]

删除无引入ref、reactive...eslint警告 yarn add vue-global-api .eslintrc.js

extends: [
    'vue-global-api',
    ]

main.js

import 'vue-global-api';

⚡docker发布到服务器

本篇文字详细讲述了vue3项目使用docker上传到服务器https://juejin.cn/post/7233298261473804343

还请顺手点个赞!!🙏🙏🙏🙏🙏🙏

About

🚀🚀✈️✈️ 技术选型:vue3、vite3、pinia、element-plus、eslint、prettier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages