1.0.3 • Published 4 years ago

made-cli v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

cli功能支持说明

  • 1.支持个人或者组织的形式,并且支持项目的版本号拉取
  • 2.可以默认获取我的github模板(只有测试模板没有任何内容,建议配置自己的项目模板)
  • 3.支持JS文件和JSON文件的预编译(模板支持ejs模板)

用法说明

  • made-cli create |project-name|
    • 拉取我的github存储库项目
  • made-cli create |project-name| |group or user|
    • 项目名后面的为用户的github模板类型。如果拉取的是组织就给group如果是个人储存库就给user
  • made-cli create |project-name| |group or user| |groupName or userName|
    • 最后一个参数需要给组织名或者个人github名
  • 参数都是非必须的,如果不给,默认拉的是我的个人项目或者组织项目(目前没有模板,建议配置个人的)

预编译说明

  • 1.需要用户提供一个ask.js的询问文件,
  • 2.预编译的JS或者JSON文件使用ejs模板的写法进行拼接。
如:
ask.js

module.exports = [
    {
        type: 'confirm',
        name: 'private'
        message: 'this resgistery is private?'
    },
    {
        type: 'input',
        name: 'author',
        message: 'author?'
    },
    {
        type: 'input',
        name: 'license',
        message: 'license?'
    }
]

package.json
    {
        "private": "<%=private>"
        "description": "<%= descriptions>",
        "license":"<%=license>"
    }