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.
|
|
14 hours ago | |
|---|---|---|
| .cursor/rules | 4 days ago | |
| .trae/rules | 4 days ago | |
| .vscode | 4 days ago | |
| env | 4 days ago | |
| scripts | 4 days ago | |
| src | 14 hours ago | |
| vite-plugins | 4 days ago | |
| .commitlintrc.cjs | 4 days ago | |
| .editorconfig | 4 days ago | |
| .gitignore | 4 days ago | |
| .npmrc | 4 days ago | |
| LICENSE | 4 days ago | |
| README.md | 4 days ago | |
| eslint.config.mjs | 4 days ago | |
| favicon.ico | 4 days ago | |
| index.html | 4 days ago | |
| manifest.config.ts | 4 days ago | |
| openapi-ts-request.config.ts | 4 days ago | |
| package.json | 4 days ago | |
| pages.config.ts | 4 days ago | |
| pnpm-lock.yaml | 4 days ago | |
| tsconfig.json | 4 days ago | |
| uno.config.ts | 4 days ago | |
| vite.config.ts | 4 days ago | |
README.md
⚙️ 环境
- node>=18
- pnpm>=7.30
- Vue Official>=2.1.10
- TypeScript>=5.0
📂 快速开始
执行 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的菜单来发行到对应的平台。)