earthtwittergithubnpmlink

Plop is a little tool that saves you time and helps your team build new files with consistency.

Plop generates code when you want, how you want, and can be changed whenever you want.
magic-wandgraduation-hatmustachesyncpapercliprocket

What Others are Saying

Who Is Using Plop?

Your First Plopfile


	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',
	    }]
	  });
	
	};
		

Big Thanks to All Contributors!