Tidak Ada Deskripsi

菲鸽 5bdb29994d refactor: 请求等页面 2 tahun lalu
.husky e9602040a5 build: husky + lint-staged + commitlint 2 tahun lalu
.vscode 7a90f2f57b refine: delete useless vscode extensions 2 tahun lalu
env 6a6030642e feat: 针对不同场景,配置2个不同的上传图片函数 2 tahun lalu
shell 28caa1dea3 feat: 大量升级,v2.0.0 2 tahun lalu
src 5bdb29994d refactor: 请求等页面 2 tahun lalu
.editorconfig 47c8ac2b5d build(prettier): add .prettierrc.js 2 tahun lalu
.eslintignore 3967084fda build: add uni_modules 并 加入ignore 2 tahun lalu
.eslintrc-auto-import.json 545e1e854f chore: json 2 tahun lalu
.eslintrc.cjs 2e53343022 build(eslint): eslint-config-airbnb-base 改为 eslint-config-standard, 移除 vue-global-api 2 tahun lalu
.gitignore 5cdd45e6d9 refine: gitignore 2 tahun lalu
.npmrc 4d60d69a2f build: add 淘宝源 registry 2 tahun lalu
.prettierignore 58e630cf6d feat: 做测试,放开部分ignore 2 tahun lalu
.prettierrc.cjs 61ff5d1614 fix(prettier): 格式化后,标签>跑到下一行BUG 2 tahun lalu
.stylelintignore 3967084fda build: add uni_modules 并 加入ignore 2 tahun lalu
.stylelintrc.cjs 34ecd2c9a8 feat: 引入iconfont 2 tahun lalu
LICENSE 1a65bd681f refactor: readme 2 tahun lalu
README.md 2b41626a96 refine: readme 2 tahun lalu
commitlint.config.cjs 2eb7b89dea refine: commitlint config 2 tahun lalu
favicon.ico c3ed31c84b feat: 引入 favicon.ico 2 tahun lalu
index.html 470f34c689 feat: unibest title 2 tahun lalu
manifest.config.ts ddcba22c3e feat: wot 主题色配置 2 tahun lalu
package.json 66f52a8891 build: 2.1.0 2 tahun lalu
pages.config.ts c4f954bca7 feat: 引入z-paging 2 tahun lalu
tsconfig.json 71f22f24a4 feat: 兼容js类型文件 2 tahun lalu
uni-pages.d.ts 5cdd45e6d9 refine: gitignore 2 tahun lalu
uno.config.ts 7d05cea7fe feat: unocss 配置说明 2 tahun lalu
vite.config.ts 7beb03a89e chore: proxy 可选,非必须 2 tahun lalu

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 菲鸽