bandhuBuy uniapp 前端app 项目

liangan 3374af1e59 ci: init hace 1 mes
.husky 293fc775b0 ci: init hace 1 mes
.vscode 293fc775b0 ci: init hace 1 mes
env 293fc775b0 ci: init hace 1 mes
patches 293fc775b0 ci: init hace 1 mes
scripts 293fc775b0 ci: init hace 1 mes
src 293fc775b0 ci: init hace 1 mes
vite-plugins 293fc775b0 ci: init hace 1 mes
.commitlintrc.cjs 293fc775b0 ci: init hace 1 mes
.editorconfig 293fc775b0 ci: init hace 1 mes
.gitignore 293fc775b0 ci: init hace 1 mes
.npmrc 293fc775b0 ci: init hace 1 mes
LICENSE 293fc775b0 ci: init hace 1 mes
README.md 3374af1e59 ci: init hace 1 mes
eslint.config.mjs 293fc775b0 ci: init hace 1 mes
favicon.ico 293fc775b0 ci: init hace 1 mes
index.html 293fc775b0 ci: init hace 1 mes
manifest.config.ts 293fc775b0 ci: init hace 1 mes
openapi-ts-request.config.ts 293fc775b0 ci: init hace 1 mes
package.json 293fc775b0 ci: init hace 1 mes
pages.config.ts 293fc775b0 ci: init hace 1 mes
pnpm-lock.yaml 293fc775b0 ci: init hace 1 mes
pnpm-workspace.yaml 293fc775b0 ci: init hace 1 mes
tsconfig.json 293fc775b0 ci: init hace 1 mes
uno.config.ts 293fc775b0 ci: init hace 1 mes
vite.config.ts 293fc775b0 ci: init hace 1 mes

README.md

⚙️ 环境

  • 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基座。

🔗 发布

  • 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云打包。