# taro-mini **Repository Path**: quankehao/taro-mini ## Basic Information - **Project Name**: taro-mini - **Description**: taro 搭建的小程序 技术栈为: ahooks+react+tailwindcss+taro-ui(taro) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-06-29 - **Last Updated**: 2023-09-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目介绍 该项目使用 Taro CIL 初始化的一个项目 ### 开始项目 #### 安装依赖 ```shell yarn ``` #### 安装依赖 ```json //yarn X (X指的是 json 下的各种key) // 如:yarn build:h5 在h5端运行项目,详情查看 https://taro-docs.jd.com/taro/docs/GETTING-STARTED#%E7%BC%96%E8%AF%91%E8%BF%90%E8%A1%8C { "build:weapp": "taro build --type weapp", "build:swan": "taro build --type swan", "build:alipay": "taro build --type alipay", "build:tt": "taro build --type tt", "build:h5": "taro build --type h5", "build:rn": "taro build --type rn", "build:qq": "taro build --type qq", "build:jd": "taro build --type jd", "build:quickapp": "taro build --type quickapp", "dev:weapp": "npm run build:weapp -- --watch", "dev:swan": "npm run build:swan -- --watch", "dev:alipay": "npm run build:alipay -- --watch", "dev:tt": "npm run build:tt -- --watch", "dev:h5": "npm run build:h5 -- --watch", "dev:rn": "npm run build:rn -- --watch", "dev:qq": "npm run build:qq -- --watch", "dev:jd": "npm run build:jd -- --watch", "dev:quickapp": "npm run build:quickapp -- --watch" } ``` ### 该项目 做了啥? - 建立统一风格的代码格式化并对代码做了统一的 eslint 校验 - 对 Taro.request 做了封装,目前封装了 `get` 和 `post` 方法 - 引入了 [ahooks](https://ahooks.js.org/zh-CN/) - 统一代码目录结构 - 引入了 [taro-ui](https://taro-ui.jd.com/#/docs/introduction) ### 开发统一 - 安装 prettier 插件,统一格式化代码 - 由于 npm 安装较慢,所以使用 [yarn](https://yarnpkg.com/getting-started/install) 工具 - 项目的 css 使用 [tailwindcss](https://windicss.org/utilities/layout/sizing.html#width)