https://github.com/ymm-tech/thresh-cli
Thresh command line tools.
https://github.com/ymm-tech/thresh-cli
Last synced: 9 months ago
JSON representation
Thresh command line tools.
- Host: GitHub
- URL: https://github.com/ymm-tech/thresh-cli
- Owner: ymm-tech
- License: mit
- Created: 2020-12-30T06:36:37.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-30T07:35:45.000Z (about 5 years ago)
- Last Synced: 2024-04-25T00:02:54.942Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 7
- Watchers: 4
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 使用 thresh-cli 命令快速创建项目
在目标目录中执行 thresh-cli create yourAppName 命令即可创建一个新的,如:`thresh-cli create TreshTest1`,项目创建的同时会自动安装相关依赖。
> **TIP**
> 自动安装依赖通过 `yarn` 执行,请先全局安装 `yarn`
> `thresh-cli create` 命令创建的项目,其项目名会同时作为 package.json 中的 name 字段,并且该字段会作为项目在宿主工程中的模块名被使用。因此如项目名不是模块名,需要自行修改 package.json 中的 name 字段。
```
ManbangMacBook-Pro:thresh_test_demo Manbang$ thresh-cli create ThreshTest1
使用ThreshTest1作为项目/模块名称? (y/N) y
创建项目成功
```