Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/zhangmingzhao1/smart-cli
- Owner: ZhangMingZhao1
- License: mit
- Created: 2019-09-24T12:21:15.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T23:10:14.000Z (over 3 years ago)
- Last Synced: 2024-04-23T18:15:51.852Z (7 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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上已被占用。