Creating good boilerplate shouldn't require a masters degree. Read over the one page getting started guide and you'll be well on your way.
Once plop is setup, anyone on the team can simply type plop into the terminal. The right way to create your code, is now the easiest way.
Allow your boilerplate to grow and change with the codebase it is generating. Adding new generators can be as simple as writing a template.
Keep everyone up to date as they build. When your generators live in your codebase, everyone gets the latest version by simply pulling from the repo.
Plop uses the popular handlebars template engine to generate your files. Many developers are already familiar with the handlebars syntax.
Plop can generate any type of code! Use plop to generate HTML, CSS, JavaScript, CSharp, Objective C, Selenium tests, microservices... anything!
module.exports = function (plop) {
plop.setGenerator('controller', {
description: 'application controller',
// inquirer prompts
prompts: [{
type: 'input',
name: 'name',
message: 'Controller name?'
}],
// actions to perform
actions: [{
type: 'add',
path: 'src/controllers/{{dashCase name}}.js',
templateFile: 'templates/controller.hbs',
}]
});
};