Sen descrición

菲鸽 ab7c5f97e4 feat(unocss): 先去掉 presetLegacyCompat hai 1 ano
.husky e9602040a5 build: husky + lint-staged + commitlint %!s(int64=2) %!d(string=hai) anos
.vscode c4f3da820d refine: 项目结构 hai 1 ano
env b1fe40fa4a build: 默认不用proxy hai 1 ano
src 65b8be6f57 feat: initialData hai 1 ano
.editorconfig 47c8ac2b5d build(prettier): add .prettierrc.js %!s(int64=2) %!d(string=hai) anos
.eslintignore 3967084fda build: add uni_modules 并 加入ignore %!s(int64=2) %!d(string=hai) anos
.eslintrc-auto-import.json 545e1e854f chore: json %!s(int64=2) %!d(string=hai) anos
.eslintrc.cjs 2e53343022 build(eslint): eslint-config-airbnb-base 改为 eslint-config-standard, 移除 vue-global-api %!s(int64=2) %!d(string=hai) anos
.gitignore c4f3da820d refine: 项目结构 hai 1 ano
.npmrc 4d60d69a2f build: add 淘宝源 registry %!s(int64=2) %!d(string=hai) anos
.prettierignore 58e630cf6d feat: 做测试,放开部分ignore %!s(int64=2) %!d(string=hai) anos
.prettierrc.cjs 61ff5d1614 fix(prettier): 格式化后,标签>跑到下一行BUG %!s(int64=2) %!d(string=hai) anos
.stylelintignore 3967084fda build: add uni_modules 并 加入ignore %!s(int64=2) %!d(string=hai) anos
.stylelintrc.cjs 34ecd2c9a8 feat: 引入iconfont %!s(int64=2) %!d(string=hai) anos
LICENSE 1a65bd681f refactor: readme %!s(int64=2) %!d(string=hai) anos
README.md 2b41626a96 refine: readme %!s(int64=2) %!d(string=hai) anos
commitlint.config.cjs 2eb7b89dea refine: commitlint config %!s(int64=2) %!d(string=hai) anos
favicon.ico c3ed31c84b feat: 引入 favicon.ico %!s(int64=2) %!d(string=hai) anos
index.html 470f34c689 feat: unibest title %!s(int64=2) %!d(string=hai) anos
manifest.config.ts 4789b5ba41 build(app): ignoreVersion hai 1 ano
package.json c4f3da820d refine: 项目结构 hai 1 ano
pages.config.ts 534d2cb12f refactor: 使用独立about文件夹 hai 1 ano
tsconfig.json 71f22f24a4 feat: 兼容js类型文件 %!s(int64=2) %!d(string=hai) anos
uni-pages.d.ts 5cdd45e6d9 refine: gitignore %!s(int64=2) %!d(string=hai) anos
uno.config.ts ab7c5f97e4 feat(unocss): 先去掉 presetLegacyCompat hai 1 ano
vite.config.ts 8bd9bddd83 feat: 配置VITE_APP_PROXY_PREFIX 前缀是个变量 hai 1 ano

README.md

unibest - 最好的 uniapp 开发模板

[![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) [![star](https://gitee.com/codercup/unibest/badge/star.svg?theme=dark)](https://gitee.com/codercup/unibest/stargazers) [![fork](https://gitee.com/codercup/unibest/badge/fork.svg?theme=dark)](https://gitee.com/codercup/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/codercup/unibest) ![GitHub License](https://img.shields.io/github/license/codercup/unibest)

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

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

📱 DEMO 地址 | 📖 文档地址

⚙️ 环境

  • node>=18
  • pnpm>=7.30

📂 快速开始

执行 pnpm create unibest 创建项目

执行 pnpm i 安装依赖

执行 pnpm dev 运行 H5

📦 运行(支持热更新)

  • web平台: pnpm dev:h5, 然后打开 http://localhost:9000/
  • weixin平台:pnpm dev:mp-weixin 然后打开微信开发者工具,导入本地文件夹,选择本项目的dist/dev/mp-weixin 文件。
  • APP平台:pnpm dev:app, 然后打开 HBuilderX,导入刚刚生成的dist/dev/app 文件夹,选择运行到模拟器(开发时优先使用),或者运行的安卓/ios基座。

🔗 发布

  • web平台: pnpm build:h5,打包后的文件在 dist/build/h5,可以放到web服务器,如nginx运行。如果最终不是放在根目录,可以在 manifest.config.ts 文件的 h5.router.base 属性进行修改。
  • weixin平台:pnpm build:mp-weixin, 打包后的文件在 dist/build/mp-weixin,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。
  • APP平台:pnpm build:app, 然后打开 HBuilderX,导入刚刚生成的dist/build/app 文件夹,选择发行 - APP云打包。

📄 License

MIT

Copyright (c) 2024 菲鸽