npm.io
1.0.1 • Published 4 years agoCLI

@qinghuanaa/vitepress-cli

Licence
MIT
Version
1.0.1
Deps
6
Size
7 kB
Vulns
0
Weekly
0
Stars
1

vitepress-cli

A CLI for quickly creating a vitepress project has two templates for selection.

  • blog-template
  • docs-template

Install


npm install @qinghuanaa/vitepress-cli -g

Usage

vitepress-cli create <project name>

According to tips to select the template to create a project

Detail

docs template

The template directory like this

<project name>
├── docs
│   ├── .vitepress
│   │   └── config.js  "vitepress project config file"
│   ├── public  "store public file"
│   │   └── bg.jpg
│   ├── index.md   "front page"
│   └── guide
├── yarn.lock
└── package.json

blog template

The template directory like this

<project name>
├── docs
│   ├── .vitepress
│   │   └── config.js  "vitepress project config file"
│   ├── public  "store public file"
│   │   └── bg.jpg
│   ├── index.md   "front page"
│   ├── blogs   "store some blogs file"
│   └── projects   "store some projects file"
├── yarn.lock
└── package.json