refactor: developer的文档移到readme

This commit is contained in:
Burt 2024-01-09 16:39:20 +08:00
parent 793547a78d
commit ab0628a77b
2 changed files with 21 additions and 24 deletions

View File

@ -1,24 +0,0 @@
# vue3-uniapp-template 开发者文档
本文档提供为开发者
## 拉取代码
- git 拉取
- github`git clone https://github.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp`
- gitee`git clone https://gitee.com/fly-vue3-templates/vue3-uniapp-template.git fly-uniapp`
- degit 拉取不包含git需要自己git init
- `npx degit https://github.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp`
- `npx degit https://gitee.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp`
- github template
![Github template](./screenshots/github-template.png)
## 文件整理
可以把不要的文件统统删除,或者留着当做参考。

View File

@ -44,6 +44,23 @@
- pnpm>=8.12
- node>=18
## 拉取代码
- git 拉取
- github`git clone https://github.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp`
- gitee`git clone https://gitee.com/fly-vue3-templates/vue3-uniapp-template.git fly-uniapp`
- degit 拉取不包含git需要自己git init
- `npx degit https://github.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp`
- `npx degit https://gitee.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp`
- github template
![Github template](./screenshots/github-template.png)
## 运行
- web平台 `pnpm dev:h5`, 然后打开 [http://localhost:9000/](http://localhost:9000/)。
@ -54,3 +71,7 @@
- web平台 `pnpm build:h5`,打包后的文件在 `dist/build/h5`可以放到web服务器如nginx运行。如果最终不是放在根目录可以在 `vite.config.ts``base` 属性进行配置。[vite官网](https://cn.vitejs.dev/config/shared-options.html#base)
![vite.base](./screenshots/vite-base.png)
- weixin平台`pnpm build:h5`, 打包后的文件在 `dist/build/mp-weixin`,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。
## 文件整理
可以把不要的文件统统删除,或者留着当做参考。