taro 项目目录结构分析

372 阅读1分钟

1.目录结构

微信图片_20220219101533.png

2.分析

├── config                      项目编译配置目录
|   ├── index.js                默认配置
|   ├── dev.js                  开发环境配置
|   └── prod.js                 生产环境配置
|
├── dist                        编译结果目录
|
├── src                         源码目录
|   ├── pages                   页面文件目录
|   |   └── index               index 页面目录
|   |       ├── index.js        index 页面逻辑
|   |       ├── index.css       index 页面样式
|   |       └── index.config.js index 页面配置
|   |
|   ├── app.js                  项目入口文件
|   ├── app.css                 项目总通用样式
|   └── app.config.js           项目入口配置
|
├── project.config.json         微信小程序项目配置 project.config.json
├── project.tt.json             字节跳动小程序项目配置 project.tt.json
├── project.swan.json           百度小程序项目配置 project.swan.json
├── project.qq.json             QQ 小程序项目配置 project.qq.json
|
├── tsconfig.json               TypeScript 配置
├── .eslintrc                   ESLint 配置
├── babel.config.js             Babel 配置
└── package.json

3.详细配置请参考官网地址

taro-docs.jd.com/taro/docs/f…