71
Yeoman generator for VuePress
source link: https://www.tuicool.com/articles/hit/NFfEvun
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
generator-vuepress
Yeoman generator for VuePress
Installation
First, install Yeoman and generator-vuepress using npm (we assume you have pre-installed node.js ).
npm install -g vuepress npm install -g yo npm install -g generator-vuepress
Then generate your new project:
yo vuepress
Getting started
npm run docs:dev
Generate Page
yo vuepress:page
Creates a [folder]/README.md
under docs.
Overwrite the conflicts to persist the theme configurations.
Generate Component
yo vuepress:component
Creates a component under docs/.vuepress/components
.
Build
npm run docs:build
Build generated under docs/.vuepress/dist
File tree
. ├── docs │ ├── about │ │ └── README.md │ ├── contact │ │ └── README.md │ ├── images │ │ └── thumbnail-256x256.png │ ├── README.md │ └── .vuepress │ ├── components │ │ ├── Button │ │ │ └── Counter.vue │ │ └── Demo.vue │ ├── config.js | ├── dist │ └── public │ └── favicon.ico └── package.json
Getting To Know Yeoman
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman .
License
MIT © amimaro
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK