Skip to content

Alan1034/VuePureFrame

Repository files navigation

ReactPureFrame

一个从零搭建的Vue3纯净框架
A Vue3 pure frame build up from nothing

目前支持:
npm run serve
npm run build

master分支,适合用于桌面页面 master for desktop

vue+vue-router+element分支,一个加入了路由和ele布局的分支,后续继续更新了一些便于开发的配置 vue+vue-router+element a branch with vue-router and element.js layouts, some easy for develop update has come

vue+vue-router+element分支中用.env文件和package.json文件去修改项目环境变量 In vue+vue-router+element branch we use file .env and package.json to modify environment variables

vue3+vite 分支打包工具设置为vite,对比webpack速度和集成度上有显著提升,带来流畅的开发体验 vue3+vite branch branch The packaging tool is set to vite, which significantly improves the speed and integration of webpack, bringing a smooth development experience

来源:改造而来的一个Vue3的脚手架。有以下优点:

(1)编译和依赖更新到新版本,使用Vue3

(2)兼容less和scss,兼容字体文件

(3)优化打包的体积问题,支持gzip和代码图片的压缩和加密

(4)浏览器兼容性良好

(5)纯净极简,可正常开发打包,可配置性强

(6)根据文件夹和配置文件自动生成系统路由

vue3+vite+typescript 分支 vue3+vite+typescript branch

添加TS等插件的支持,集成包括自动更新package.json的版本信息,代码压缩加密,兼容旧版浏览器等功能

Add support for TS and other plugins, integrating features such as automatic update of package. json version information, code compression and encryption, compatibility with older browsers, and more

支持使用playwright进行自动化测试,并自动生成生成系统路由测试用例,支持登陆信息储存,支持模拟测试数据,支持不同环境的自动化测试

Support the use of Playwright for automated testing, automatically generate system route test describe, support login info storage, support mock testing data and support automated testing in different environments

npx playwright install

npm run test uat 环境 npm run test:uat

使用codegen自动生成测试代码 npm run codegen

DEMO