Skip to content

leenty/lebo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lebo

NPM version npm download node version npm license

vue2博客命令行工具包

安装

npm i -g lebo

模板

获取模板

git clone git@github.com:leenty/vue2.git

安装依赖

npm i

开启

npm run dev

编译打包

lebo article -r && npm run build

命令

使用lebo -h查看帮助

  Usage: lebo <command> [options]

  Commands:

    article [options]   create article and generate article's route

  Options:

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

子命令article

使用lebo article -h查看子命令article的帮助

  Usage: article [options]

  create article and generate article's route

  Options:

    -h, --help              output usage information
    -r, --render            generate article's route
    -c, --create <article>  create a article named <article>
    -m, --mkdir             create articles directory

创建文章目录: lebo article -m

创建文章: lebo article -c <article>

栗子:

# 输入
lebo article -c test

# 输出
新建文章《test》
路径: /Users/leenty/dev/vue2/src/md/articles/test.md

创建文章路由: lebo article -r

栗子:

# 输入
lebo article -r

# 输出
文章路由生成完毕! 
文章列表生成完毕! 
预渲染路由生成完毕!

About

blog NPM command package

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published