JSPM

  • Created
  • Published
  • Downloads 67
  • Score
    100M100P100Q64444F

Kickstart documentation for any project! This is the official Yeoman generator for Verb, a zero-configuration markdown documentation generator that is extremely easy to use and extend.

Package Exports

  • generator-verb

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generator-verb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

generator-verb NPM version

Kickstart documentation for any project! This is the official Yeoman generator for Verb, a zero-configuration markdown documentation generator that is extremely easy to use and extend.

We're just getting started here, we'd love to see pull requests for other types of documentation and for any kind of project!

Getting Started

Usage

Once installed globally, simply run:

  • yo verb to to start a new project
  • yo verb:boilerplate [foo] to use a specific boilerplate. Verb boilerplates are just sets of documents.
  • yo verb:doc [foo] to add a specific document or 'include'.

yo verb

Running the generator with yo verb will add the following files to your project:

  • docs/README.tmpl.md: a readme template
  • .verbrc.yml: a runtime config file for Verb
  • package.json: with minimal properties defined. However, if this exists already verb will be added to devDependencies.

Sub-generators

Sub-generators allow you to add a specific file or files to an existing project.

yo verb:readme

Add a readme template to docs/README.tmpl.md by running yo verb:readme.

yo verb:config

Add a Verb config file with:

yo verb:config foo

Where foo is one of the following:

  • yo verb:config json: adds a .verbrc file
  • yo verb:config yaml: adds a .verbrc.yml file
  • yo verb:config verbfile: adds a verbfile.js file

Pro tips:

  • You can use the default config file, .verbrc.yml, by running just yo verb:config.
  • You can add a verbfile.js by running just yo verb:vf

yo verb:doc

Add a specific document with:

yo verb:doc foo.md

Where foo.md is the name of the file you want to add. If the name used matches an actual file in verb-readme-includes, then that file will be copied into the docs/ directory of your project.

If the name doesn't match a valid file in verb-readme-includes, then a new "starter" document will be created using the given file name.

yo verb:boilerplate

Use a boilerplate to kickstart documentation for a project. Boilerplates include a README.tmpl.md template and a few includes, such as install.md, options.md etc.

yo verb:boilerplate foo

Where foo is the name of the boilerplate you want to use from verb-boilerplates.

Valid yo verb:boilerplate arguments are:

  • node: adds generic documentation for a Node.js project
  • helper: adds generic documentation for a Handlebars helper project
  • assembleplugin: adds generic documents for an Assemble plugin
  • gulpplugin: adds generic documents for a gulp plugin
  • gruntplugin: adds generic documents for a Grunt plugin

Pro tip: you can use the default boilerplate, node, by running just yo verb:boilerplate.

Contrib boilerplates

Used by the Assemble core team:

  • contribplugin: Same as assembleplugin, but includes info specific to the Assemble core team.

Custom boilerplates

Visit the docs for adding custom boilerplates.

yo verb:data

Verb processes templates using data from your project's package.json. You can extend the data available to your templates with any JSON or YAML files specified in .verbrc.yml or in options.data.

Add a data file to your project with:

  • yo verb:data changelog: adds a CHANGELOG file to the root of your project, formatted as valid YAML.

yo verb:vf

To a verbfile.js to your project, run:

yo verb:vf

Verbfiles are useful for configuring plugins, custom tags, custom source and dest paths, and so on.

CLI Options

Command: -s | --skip-install

Skips the automatic execution of bower and npm after scaffolding has finished.

Command: -w | --skip-welcome-message

Skips the Yeoman welcome message.

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on March 30, 2014.