https://github.com/weibozzz/a-template-cli
支付宝小程序自动生成 page 和 component 模板 cli
https://github.com/weibozzz/a-template-cli
Last synced: about 2 months ago
JSON representation
支付宝小程序自动生成 page 和 component 模板 cli
- Host: GitHub
- URL: https://github.com/weibozzz/a-template-cli
- Owner: Weibozzz
- Created: 2019-11-14T11:37:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T09:59:22.000Z (about 4 years ago)
- Last Synced: 2025-02-28T13:17:36.794Z (3 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
快速生成模板 cli
## usage
```bash
npm install a-template-cli -g
a-cli --help
```
## 支付宝小程序
支付宝小程序 page 和 component 模板 cli
### 创建 page```bash
a-cli -P filename
# use ts
a-cli -PT filename
```
### 创建 component```bash
a-cli -C filename
# use ts
a-cli -CT filename
```## vue模板
```bash
a-cli --vue filename
# use ts
a-cli --vue filename -T
# use less
a-cli --vue filename -L
```
### 创建单文件```bash
a-cli --vue filename -S
# use less
a-cli --vue filename -SL
```