You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
6 days ago | |
|---|---|---|
| .cursor/rules | 6 days ago | |
| .github | 6 days ago | |
| .husky | 6 days ago | |
| .trae/rules | 6 days ago | |
| .vscode | 6 days ago | |
| codes | 6 days ago | |
| env | 6 days ago | |
| scripts | 6 days ago | |
| src | 6 days ago | |
| vite-plugins | 6 days ago | |
| .commitlintrc.cjs | 6 days ago | |
| .editorconfig | 6 days ago | |
| .gitignore | 6 days ago | |
| .npmrc | 6 days ago | |
| LICENSE | 6 days ago | |
| README.md | 6 days ago | |
| eslint.config.mjs | 6 days ago | |
| favicon.ico | 6 days ago | |
| index.html | 6 days ago | |
| manifest.config.ts | 6 days ago | |
| openapi-ts-request.config.ts | 6 days ago | |
| package.json | 6 days ago | |
| pages.config.ts | 6 days ago | |
| pnpm-lock.yaml | 6 days ago | |
| tsconfig.json | 6 days ago | |
| uno.config.ts | 6 days ago | |
| vite.config.ts | 6 days ago | |
README.md
unibest - 最好的 uniapp 开发框架
unibest —— 最好的 uniapp 开发模板,由 uniapp + Vue3 + Ts + Vite5 + UnoCss + wot-ui + z-paging 构成,使用了最新的前端技术栈,无需依靠 HBuilderX,通过命令行方式运行 web、小程序 和 App(编辑器推荐 VSCode,可选 webstorm)。
unibest 内置了 约定式路由、layout布局、请求封装、请求拦截、登录拦截、UnoCSS、i18n多语言 等基础功能,提供了 代码提示、自动格式化、统一配置、代码片段 等辅助功能,让你编写 uniapp 拥有 best 体验 ( unibest 的由来)。
注意旧的地址 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
Copyright (c) 2025 菲鸽
捐赠
