1 Star 0 Fork 13

daitao / simple-vite

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

SimpleVite

:pushpin: 简介

:disappointed: 还在为公司临时启动新项目从而重新搭建一套前端环境而烦恼?
:disappointed: 还在为项目文件优化及项目代码规范不知如何处理而一一百度?
:disappointed: 是否有想过不想花时间处理功能性技术只想专注公司业务模块?

SimpleVite 就是为了解决这些问题!省时间、少踩坑、高效率! SimpleVite 是一款基于Vite2+Vue3+Vant3+TypeScript 的移动端且开箱即用的前端集成式、优化式框架。

:pushpin: 简单预览 && :palm_tree: Webpack 版本

可参照 SimpleVue 项目: https://gitee.com/zijun2030/simple-vue

:pushpin: 优势特色

:star: 互联网上已有诸多类似的开源式框架,那么 SimpleVite 对比有何优势?

一张图表示: simple_vue.jpg

序号 要点
1 技术栈:vite2.x、Vue3.x、Vue-Router4.x、Vuex4.x、Vant3.x、Less
2 移动端/全面屏适配:px-to-viewport
3 全局样式/常用样式统一化
4 鉴权:登录校验
5 Axios 精细化封装,Hooks 化
6 项目结构优化:Composition/工程化 思想
7 路由配置
8 环境变量配置:独立化 + env 配置
9 Icon/Svg 全系支持
10 微信公众号/Hybrid 开发埋点封装
11 开发便捷性优化
12 生产构建性能优化
13 规范化代码/提交/注释
14 常见项目踩坑规避

:pushpin: 项目运行

# 克隆项目/项目分支
# git clone -b viewport https://gitee.com/zijun2030/simple-vite.git
git clone https://gitee.com/zijun2030/simple-vite.git
# 进入项目目录 simple-vue
cd simple-vite
# 安装依赖
yarn install
# 本地开发启动项目
yarn run dev

:pushpin: 版本日志

3.0.0

  1. A 重构路由、布局页面
  2. A 新增下拉组件
  3. F 修复一些 bug

2.0.0

  1. A 新增登录、注册页面
  2. F 修复一些 bug

1.0.0

  1. A 新增主要集成和优化,具体可见预览图

:pushpin: 注意事项

  • 项目基于 postcss-px-to-viewport,默认 UI 设计稿宽度是 375px

  • 配置文件说明

    // 站点标题
    siteTitle: 'SimpleVue',
    // Iconfont Font class
    iconClassUrl: '//at.alicdn.com/t/font_2292504_qwgi70l7gkr.css',
    // Iconfont Symbol
    iconSymbolUrl: '//at.alicdn.com/t/font_2292513_xqesvi79cem.js',
    // 是否开启VConsole
    showVConsole: false,
    // 是否全局开启导航栏
    fixedNavBar: true,
    // 是否全局底部切换栏
    fixedTabBar: true,
    axios: {
      // Token键名: Authorization/..bundleRenderer.renderToStream
      tokenKey: '',
      // 请求超时时间
      timeout: 10000,
    },
    // 数据默认存放位置 cookie/sessionStorage/localStorage
    storage: 'localStorage',
    // 在微信/小程序中调用微信sdk
    weixin: {
      false: true,
      // ! 微信公众号APPID,为了安全起见,需要放置env中
      // wxAppId: process.env.wxAppId,
    },
    // 基本的api地址,可按需添加,开发环境需在.evn.development中配置
    baseApiUrl: 'https://api.apiopen.top/',
MIT License Copyright (c) 2021 zijun 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.

简介

集成式、优化式Vite2+Vue3+Ts4+Vant3+Less+Postcss-to-px-viewport框架 展开 收起
TypeScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/RainyMask/simple-vite.git
git@gitee.com:RainyMask/simple-vite.git
RainyMask
simple-vite
simple-vite
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891