generate-defaults
v0.6.6
Published
Use this generator to add some common default settings to your 'generate', verb, and assemble generators.
Downloads
5,498
Maintainers
Keywords
Readme
generate-defaults
Use this generator to add some common default settings to your 'generate', verb, and assemble generators.
You might also be interested in generate.
Table of Contents
(TOC generated by verb using markdown-toc)
Install
Install with npm:
$ npm install --save generate-defaults
Usage
Register as a plugin in your generator:
module.exports = function(app) {
app.use(require('generate-defaults'));
// do generator stuff
};
What does this do?
- Loads the common-middleware plugin
- Loads the common-questions plugin
- Loads the verb-repo-data plugin, to add repository data to the context
- Registers engine-base as the default template engine
- Registers template-helpers as the default template engine
- Registers a
check-directory
task, which prompts the user if they want to procede when a directory has files in it.
Any of these features can be overridden after this plugin is registered.
About
Related projects
- assemble: Get the rocks out of your socks! Assemble makes you fast at creating web projects… more | homepage
- generate: Command line tool and developer framework for scaffolding out new GitHub projects. Generate offers the… more | homepage
- verb: Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… more | homepage
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Building docs
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Running tests
Install dev dependencies:
$ npm install -d && npm test
Author
Jon Schlinkert
License
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb-generate-readme, v0.1.31, on September 19, 2016.