Nessuna descrizione

feige996 234b4c8173 fix(router): 修复路由不存在判断逻辑错误 6 mesi fa
.cursor d53bf38274 docs: 更新项目文档规范及开发命令 6 mesi fa
.github adffb24e4e ci(auto-merge): 添加从main合并到base分支的自动合并工作流 6 mesi fa
.husky 0f9431cf1e chore(husky): 在pre-commit钩子中添加--allow-empty参数 11 mesi fa
.trae d53bf38274 docs: 更新项目文档规范及开发命令 6 mesi fa
.vscode 6b3e8508b2 chore: 删除推荐 vsc 插件中的 christian-kohler.path-intellisense,路径提示功能,vsc 已经原生提供了 6 mesi fa
codes dac85b44fd refactor(docker): 重构docker相关文件目录结构并移除冗余脚本 6 mesi fa
env 21f3fe42d1 build(env): 更新环境变量配置将 VITE_COPY_NATIVE_RES_ENABLE 的默认值从 true 改为 false。 7 mesi fa
scripts 609c0a24d5 refactor(scripts): 调整升级后要移除的依赖项 6 mesi fa
src 234b4c8173 fix(router): 修复路由不存在判断逻辑错误 6 mesi fa
vite-plugins 57331eb79e refactor(vite-plugins): 使用node:协议导入模块并优化代码格式 7 mesi fa
.commitlintrc.cjs 9c074652e1 chore: 简化 commitlint 配置 10 mesi fa
.editorconfig 47c8ac2b5d build(prettier): add .prettierrc.js 2 anni fa
.gitignore e77780c4c9 chore: 将 lock 文件重新加入版本管理 6 mesi fa
.npmrc 492942295e Increase Node.js memory limit in .npmrc 6 mesi fa
LICENSE 65830ae0f4 docs: 更新版权年份和项目链接 10 mesi fa
README.md d3a581e071 docs: 更新APP平台开发和发布的说明 8 mesi fa
eslint.config.mjs 57331eb79e refactor(vite-plugins): 使用node:协议导入模块并优化代码格式 7 mesi fa
favicon.ico c3ed31c84b feat: 引入 favicon.ico 2 anni fa
index.html b0a77baa7d fix: 使用环境变量动态设置页面标题 8 mesi fa
manifest.config.ts 49d166a391 fix(小程序): 修复支付宝小程序开发工具报错问题 6 mesi fa
openapi-ts-request.config.ts 234dc829c9 fix: openapi-ts-request 生成的代码,options 类型定义不对 6 mesi fa
package.json 2f93592e30 chore: unocss-Icons 支持加载本地 svg 作为图标 6 mesi fa
pages.config.ts aa980ecfc2 feat: 升级 uni-pages, 去掉 h5 的 hack 6 mesi fa
pnpm-lock.yaml 2f93592e30 chore: unocss-Icons 支持加载本地 svg 作为图标 6 mesi fa
tsconfig.json e1e9eb0496 chore(tsconfig): 更新 moduleResolution 为 bundler 6 mesi fa
uno.config.ts fa0a16d7df Merge pull request #341 from GreatAuk/local-icon 6 mesi fa
vite.config.ts daab3ddedd refactor(vite): 调整插件加载顺序以优化构建流程 6 mesi fa

README.md

unibest - 最好的 uniapp 开发框架

旧仓库 codercup 进不去了,star 也拿不回来,这里也展示一下那个地址的 star. [![GitHub Repo stars](https://img.shields.io/github/stars/codercup/unibest?style=flat&logo=github)](https://github.com/codercup/unibest) [![GitHub forks](https://img.shields.io/github/forks/codercup/unibest?style=flat&logo=github)](https://github.com/codercup/unibest)
[![GitHub Repo stars](https://img.shields.io/github/stars/feige996/unibest?style=flat&logo=github)](https://github.com/feige996/unibest) [![GitHub forks](https://img.shields.io/github/forks/feige996/unibest?style=flat&logo=github)](https://github.com/feige996/unibest) [![star](https://gitee.com/feige996/unibest/badge/star.svg?theme=dark)](https://gitee.com/feige996/unibest/stargazers) [![fork](https://gitee.com/feige996/unibest/badge/fork.svg?theme=dark)](https://gitee.com/feige996/unibest/members) ![node version](https://img.shields.io/badge/node-%3E%3D18-green) ![pnpm version](https://img.shields.io/badge/pnpm-%3E%3D7.30-green) ![GitHub package.json version (subfolder of monorepo)](https://img.shields.io/github/package-json/v/feige996/unibest) ![GitHub License](https://img.shields.io/github/license/feige996/unibest)

unibest —— 最好的 uniapp 开发模板,由 uniapp + Vue3 + Ts + Vite5 + UnoCss + wot-ui + z-paging 构成,使用了最新的前端技术栈,无需依靠 HBuilderX,通过命令行方式运行 web小程序App(编辑器推荐 VSCode,可选 webstorm)。

unibest 内置了 约定式路由layout布局请求封装请求拦截登录拦截UnoCSSi18n多语言 等基础功能,提供了 代码提示自动格式化统一配置代码片段 等辅助功能,让你编写 uniapp 拥有 best 体验 ( unibest 的由来)。

📖 文档地址(new) | 📱 DEMO 地址


注意旧的地址 codercup 我进不去了,使用新的 feige996。PR和 issue 也请使用新地址,否则无法合并。

平台兼容性

H5 IOS 安卓 微信小程序 字节小程序 快手小程序 支付宝小程序 钉钉小程序 百度小程序

注意每种 UI框架 支持的平台有所不同,详情请看各 UI框架 的官网,也可以看 unibest 文档。

⚙️ 环境

  • node>=18
  • pnpm>=7.30
  • Vue Official>=2.1.10
  • TypeScript>=5.0

📂 快速开始

执行 pnpm create unibest 创建项目 执行 pnpm i 安装依赖 执行 pnpm dev 运行 H5 执行 pnpm dev:mp 运行 微信小程序

📦 运行(支持热更新)

  • web平台: pnpm dev:h5, 然后打开 http://localhost:9000/
  • weixin平台:pnpm dev:mp 然后打开微信开发者工具,导入本地文件夹,选择本项目的dist/dev/mp-weixin 文件。
  • APP平台:pnpm dev:app, 然后打开 HBuilderX,导入刚刚生成的dist/dev/app 文件夹,选择运行到模拟器(开发时优先使用),或者运行的安卓/ios基座。(如果是 安卓鸿蒙 平台,则不用这个方式,可以把整个unibest项目导入到hbx,通过hbx的菜单来运行到对应的平台。)

🔗 发布

  • web平台: pnpm build:h5,打包后的文件在 dist/build/h5,可以放到web服务器,如nginx运行。如果最终不是放在根目录,可以在 manifest.config.ts 文件的 h5.router.base 属性进行修改。
  • weixin平台:pnpm build:mp, 打包后的文件在 dist/build/mp-weixin,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。
  • APP平台:pnpm build:app, 然后打开 HBuilderX,导入刚刚生成的dist/build/app 文件夹,选择发行 - APP云打包。(如果是 安卓鸿蒙 平台,则不用这个方式,可以把整个unibest项目导入到hbx,通过hbx的菜单来发行到对应的平台。)

📄 License

MIT

Copyright (c) 2025 菲鸽

捐赠

special sponsor appwrite special sponsor appwrite