|
|
7 months ago | |
|---|---|---|
| .. | ||
| .vscode | 1 year ago | |
| env | 7 months ago | |
| keys | 1 year ago | |
| scripts | 1 year ago | |
| src | 7 months ago | |
| .commitlintrc.cjs | 1 year ago | |
| .editorconfig | 1 year ago | |
| .env.production | 1 year ago | |
| .eslintignore | 1 year ago | |
| .eslintrc-auto-import.json | 11 months ago | |
| .eslintrc.cjs | 10 months ago | |
| .gitignore | 1 year ago | |
| .hintrc | 1 year ago | |
| .minicirc | 1 year ago | |
| .npmrc | 1 year ago | |
| .prettierignore | 1 year ago | |
| .prettierrc.cjs | 1 year ago | |
| .stylelintignore | 1 year ago | |
| .stylelintrc.cjs | 1 year ago | |
| LICENSE | 1 year ago | |
| README.md | 9 months ago | |
| favicon.ico | 1 year ago | |
| index.html | 1 year ago | |
| manifest.config.ts | 7 months ago | |
| package.json | 10 months ago | |
| pages.config.ts | 1 year ago | |
| pnpm-lock.yaml | 11 months ago | |
| tsconfig.json | 10 months ago | |
| uno.config.ts | 1 year ago | |
| vite.config.ts | 1 year ago | |
执行 pnpm create unibest 创建项目
执行 pnpm i 安装依赖
执行 pnpm dev 运行 H5
pnpm dev:h5, 然后打开 http://localhost:9000/。pnpm dev:mp-weixin 然后打开微信开发者工具,导入本地文件夹,选择本项目的dist/dev/mp-weixin 文件。pnpm dev:app, 然后打开 HBuilderX,导入刚刚生成的dist/dev/app 文件夹,选择运行到模拟器(开发时优先使用),或者运行的安卓/ios基座。pnpm build:h5,打包后的文件在 dist/build/h5,可以放到web服务器,如nginx运行。如果最终不是放在根目录,可以在 manifest.config.ts 文件的 h5.router.base 属性进行修改。pnpm build:mp-weixin, 打包后的文件在 dist/build/mp-weixin,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。pnpm build:app, 然后打开 HBuilderX,导入刚刚生成的dist/build/app 文件夹,选择发行 - APP云打包。"mp-weixin": {
"appid": "wxfbe1df95a05d1912",
"setting": {
"urlCheck": false
},
"usingComponents": true,
"requiredPrivateInfos": ["chooseLocation", "getLocation", "chooseAddress"],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
}
},