little-cli
v1.0.4
Published
> 通用的cli库,可以通过配置`project.config.js`文件,实现下载不一样的框架库
Downloads
4
Readme
little-cli
通用的cli库,可以通过配置
project.config.js
文件,实现下载不一样的框架库
$ npm install little -g
Usage
先配置project.config.js
中的template
字段,key
是命令模块,value
是模板地址。
module.exports = {
registryURl: 'https://registry.npmjs.org/little-cli',
template: {
koa: 'minhuaF/koa-server',
react: 'minhuaF/first-react-app'
}
}
$ little init <template-name> <project-name>
Example:
$ little init koa my-project