leiren

给每个人安排一个12格包包

Usage no npm install needed!

<script type="module">
  import leiren from 'https://cdn.skypack.dev/leiren';
</script>

README

Installation

给每个人安排一个12格包包

npm install leiren -g

or

git clone https://github.com/pixelhue/lieren.git
cd leiren && npm install
npm link

Usage

Open your terminal and type leiren -h , you'll see the help infomation below:

Usage: leiren <command>

Options:
  -V, --version  output the version number
  -h, --help     output usage information

Commands:
  add            add a new template
  delete         delete a template
  list           List the templateList
  create           create a project

leiren add

This command would help you to add a new template to the templates.json, which will be used by leiren to create projects.

$ leiren add
? 请输入模板名称 wxapp
? 请输入模板地址 https://******.git

√ Add a template successfully!

leiren delete

To delete a template, you could use this command:

$ leiren delete <template-name>

或者
支持多选删除

$ leiren delete
? 请选择要删除的模板

√ Deleted successfully!

leiren list

This command will shows you the templates list.

leiren create

You can create a templates use this command

leiren create [project-name] <template-name>
未输入 project-name  默认为 leiren-project
未输入 <template-name>
会进入单选需要安装的项目