https://github.com/ymm-tech/thresh-template
Thresh project template, used to quickly build based thresh projects.
https://github.com/ymm-tech/thresh-template
Last synced: 9 months ago
JSON representation
Thresh project template, used to quickly build based thresh projects.
- Host: GitHub
- URL: https://github.com/ymm-tech/thresh-template
- Owner: ymm-tech
- License: mit
- Created: 2020-12-30T06:35:09.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-27T06:42:14.000Z (over 4 years ago)
- Last Synced: 2025-03-26T18:21:45.192Z (10 months ago)
- Language: JavaScript
- Size: 78.1 KB
- Stars: 11
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### 进入开发
1. 安装 yarn
3. 进入工程根目录,执行 `yarn install` 安装依赖
4. 执行 `yarn dev` 启动本地服务
5. 进入 Thresh 项目,执行 `flutter run` 启动 flutter 本地调试工程
> Thresh 将会自动连接到 http://127.0.0.1:12345 并加载 js 执行文件
> iOS 宿主工程支持连接本地服务进行调试,首先使用 `yarn prod` 代替 `yarn dev`,之后进入 iOS 宿主工程调试面板填写本地 ip 即可
### 项目打包
执行 `yarn build` 即可打包,打包后的项目会在 `/dist` 目录中