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