Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zhangmingzhao1/smart-cli

A simple, fast, and universality template-download command line tools.
https://github.com/zhangmingzhao1/smart-cli

Last synced: about 12 hours ago
JSON representation

A simple, fast, and universality template-download command line tools.

Awesome Lists containing this project

README

        

# smart-cli

A simple, fast, and universality template-download command line tools.

# Usage

```
npm install -g smartfe-cli
smart-cli -h
```

# Create a project

```
smart-cli init quick_demo
```

# Dev
```
git clone https://github.com/ZhangMingZhao1/smart-cli.git
cd smart-cli
npm link
```
# Template List

+ [react-ts-pc-start](https://github.com/jd-smart-fe/react-ts-pc-start) A Template based on react, typecript, antd
+ [react-ts-mobile-start](https://github.com/jd-smart-fe/react-ts-mobile-start) A Template based on react, typecript, antd-mobile
+ [react-light-template](https://github.com/jd-smart-fe/react-ts-mobile-start) 测试代码专用板子,轻量

# Tip

本地会在unix的~/.smart-cli创建缓存文件夹,下载过的模板会保存在这里,如果云端模板和本地模板版本一致,会直接从缓存中拷贝模板到当前目录,如果版本不一致,会重新拉取云端最新模板到当前目录,并把当前新版本模板保存在缓存文件夹中。

# hint
注意本包在npm上的包名叫smartfe-cli,但命令是smart-cli,因为smart-cli在npm上已被占用。