1.0.4 • Published 6 years ago

little-cli v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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