0.1.6 • Published 5 years ago

vuepress-plugin-new v0.1.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vuepress-plugin-new

This plugin requires VuePress >= 1.0.0.

A vuepress command-line plugin to create markdown file just like hexo new 'hello world'

中文说明

Features

  • Auto create post markdown file in current directory
  • Auto inject basic frontmatter config in post file
  • Create post by default, use options -d/--draft to create a draft
  • Auto fix file conflict

Install

npm i vuepress-plugin-new

Usage

Using this plugin:

// .vuepress/config.js
module.exports = {
    plugins: [
        'vuepress-plugin-export',
        {
            base: '_post'
        }
    ]
}

Then run:

New post named hello vuepress

vuepress new . 'hello vuepress'

New draft named hello vuepress latter

vuepress new . 'hello vuepress latter' -d/--draft

Options

base

  • Type: string
  • Default: '.'

Provide the base path in the blog directory

Development

git clone https://github.com/x-bao/vuepress-plugin-new
cd vuepress-plugin-new
yarn

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :P

Author

vuepress-plugin-new © San Baofeng, Released under the MIT License. Authored and maintained by San Baofeng

San Baofeng's · GitHub @San Baofeng · Twitter @Baofeng15

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago