You can see below the API reference of this module.
Creates a new Blah
instance.
- String
cwd
: The Blah working directory (default:process.cwd()
).
Searches a file in the blah directories.
- String
file
: The relative path to a file to search in the templates directories (in the following order: local.blah
directory,~/.blah-templates
, library templates). - Function
callback
: The callback function.
Prepares the Blah data.
- Function
callback
: The callback function.
Inits the .blah
directory in the current project.
- Function
callback
: The callback function.
Generates the DOCUMENTATION.md file, parsing the input files.
- String
input
: Input file name (default: main file from package.json) - String
output
: Output file name (default:DOCUMENTATION.md
) - Boolean
writeToFile
: Iffalse
, the docs will be returned via the callback function, without writing the output file. - Function
callback
: The callback function.
Creates the README.md
file.
- Function
callback
: The callback function
Creates the .gitignore
file.
- Function
callback
: The callback function.
Creates the LICENSE
file.
- String
license
: The license name. - Function
callback
: The callback function.
Renders a template from file.
- String
path
: The template path. - Object
data
: Additional data to merge into the template data. - Function
callback
: The callback function.
Generates the CONTRIBUTING.md
file.
- Function
callback
: The callback function.
Bumps the provided version.
- String
what
: The version which should be bumped. It takes one of the following values:"major"
,"minor"
,"patch"
. The default is"patch"
. - Function
callback
: The callback function.