|
|
há 10 meses atrás | |
|---|---|---|
| .. | ||
| .vscode | há 1 ano atrás | |
| env | há 10 meses atrás | |
| keys | há 1 ano atrás | |
| scripts | há 1 ano atrás | |
| src | há 10 meses atrás | |
| .commitlintrc.cjs | há 1 ano atrás | |
| .editorconfig | há 1 ano atrás | |
| .env.production | há 1 ano atrás | |
| .eslintignore | há 1 ano atrás | |
| .eslintrc-auto-import.json | há 11 meses atrás | |
| .eslintrc.cjs | há 10 meses atrás | |
| .gitignore | há 1 ano atrás | |
| .hintrc | há 1 ano atrás | |
| .minicirc | há 1 ano atrás | |
| .npmrc | há 1 ano atrás | |
| .prettierignore | há 1 ano atrás | |
| .prettierrc.cjs | há 1 ano atrás | |
| .stylelintignore | há 1 ano atrás | |
| .stylelintrc.cjs | há 1 ano atrás | |
| LICENSE | há 1 ano atrás | |
| README.md | há 1 ano atrás | |
| favicon.ico | há 1 ano atrás | |
| index.html | há 1 ano atrás | |
| manifest.config.ts | há 1 ano atrás | |
| package.json | há 10 meses atrás | |
| pages.config.ts | há 1 ano atrás | |
| pnpm-lock.yaml | há 11 meses atrás | |
| tsconfig.json | há 10 meses atrás | |
| uno.config.ts | há 1 ano atrás | |
| vite.config.ts | há 1 ano atrás | |
执行 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云打包。