xuweishun / thresh-template

Thresh project template, used to quickly build based thresh projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

进入开发

  1. 安装 yarn
  2. 进入工程根目录,执行 yarn install 安装依赖
  3. 执行 yarn dev 启动本地服务
  4. 进入 Thresh 项目,执行 flutter run 启动 flutter 本地调试工程

Thresh 将会自动连接到 http://127.0.0.1:12345 并加载 js 执行文件

iOS 宿主工程支持连接本地服务进行调试,首先使用 yarn prod 代替 yarn dev,之后进入 iOS 宿主工程调试面板填写本地 ip 即可

项目打包

执行 yarn build 即可打包,打包后的项目会在 /dist 目录中

About

Thresh project template, used to quickly build based thresh projects.

License:MIT License


Languages

Language:JavaScript 88.7%Language:TypeScript 11.3%