0.0.1 • Published 2 years ago

create-lly v0.0.1

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

安装

npm install create-lly -g

npx create-lly list

yarn create lly list

Usage

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

Usage: lly <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
  init           init a project

lly add

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

$ lly add
? 请输入模板名称 admin
? 请输入模板地址 https://github.com/****

√ Add a template successfully!

The latest templateList is:

┌───────┬─────────────────────────────────────────────────────┐
│ name  │ url                                                 │
├───────┼─────────────────────────────────────────────────────┤
│ app   │ https://github.com/app.git    
├───────┼─────────────────────────────────────────────────────┤
│ admin │ https://github.com/admin.git 
└───────┴─────────────────────────────────────────────────────┘

lly delete

To delete a template, you could use this command:

$ lly delete
? 请输入要删除的模板名称 admin
? 请输入要删除的模板名称 admin

√ Deleted successfully!

The latest templateList is:

┌──────┬──────────────────────────────────────────────────┐
│ name │ url                                              │
├──────┼──────────────────────────────────────────────────┤
│ app  │ https://github.com/app.git │
└──────┴──────────────────────────────────────────────────┘

lly list

This command will shows you the templates list.

$ lly list
┌──────┬──────────────────────────────────────────────────┐
│ name │ url                                              │
├──────┼──────────────────────────────────────────────────┤
│ app  │ https://github.com/app.git │
└──────┴──────────────────────────────────────────────────┘

lly init

You can init a templates use this command

lly init app project