https://github.com/wp993080086/uniapp-cli-ts-v3-template
一个开箱即用基于vue3的uniApp小程序(H5/App)项目模板。
https://github.com/wp993080086/uniapp-cli-ts-v3-template
pinia sass typescript uni-ui vk-uview-ui vue
Last synced: 6 months ago
JSON representation
一个开箱即用基于vue3的uniApp小程序(H5/App)项目模板。
- Host: GitHub
- URL: https://github.com/wp993080086/uniapp-cli-ts-v3-template
- Owner: wp993080086
- Created: 2022-05-30T10:09:15.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T04:26:52.000Z (over 2 years ago)
- Last Synced: 2023-03-05T01:01:20.146Z (about 2 years ago)
- Topics: pinia, sass, typescript, uni-ui, vk-uview-ui, vue
- Language: JavaScript
- Homepage:
- Size: 677 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README





# ⚡️ 简介
一个开箱即用,基于 `vite 2` + `vue 3` + `uview-ui` + `pinia` + `uni-ui` 的`uniapp`项目模板。
# 🚀 开发
1. 安装
```
npm install
```2. 运行
```
npm run serve
````运行成功后,使用微信开发者工具,选择mp-weixin目录并打开(路径:dist/dev/mp-weixin),即可预览。`
# 📦️ 多环境打包
- 测试环境打包
```
npm run build_test
```- 生产环境打包
```
npm run build
````打包完成后,使用微信开发者工具,选择mp-weixin目录并打开,目录路径:dist/build/mp-weixin,在微信开发者工具中点击上传即可。`
# 🔧 代码检查修复
```
npm run lint
```# 📚 目录
```
├─ .env.xxx // 各环境的配置文件
├─ .eslintrc.js // eslint配置
├─ vite.config.ts // 项目配置
├─ tsconfig.json // ts配置
├─ index.html // 入口文件
└─ src
│─ App.vue // 根容器
│─ main.ts
│
├─ components // 组件
│
├─ config // 项目级配置
│ │
│ └─index.ts
│
├─ pages // 页面
│
├─ router // 路由
│
├─ servers // 接口
│ │
│ │─ request.ts // 封装
│ └─ api // 接口
│
├─ static // 静态资源
│
├─ store // pinia
│
├─ types // ts类型定义
│
└─ utils // 工具库
│ │ index.ts
│ │ toast.ts // 弹窗封装
└─
```