2.taro基础结构和cli命令的使用

153 阅读1分钟

1.项目目录结构

image.png

2.cli命令使用

2.1 快速创建页面

Taro create --name {pageName}

image.png

2.2 命令列表

  • int / 初始化项目
  • config
  • create / 创建页面
  • build / 打包
  • update / 更新依赖包
  • info
  • doctor
  • inspect / 检查webpack配置
  • convert / 将原生微信小程序转到taro

3.项目配置

各类小程序平台均有自己的项目配置文件:

image.png