1module.exports = function (plop) {
2 plop.setGenerator('components', {
3 description: 'This will generate the components folder',
4 prompts: [{
5 type: 'input',
6 name: 'name',
7 message: 'type the name for your components folder'
8 }],
9 actions: [{
10 type: 'add',
11 path: 'src/components/{{name}}.component.js',
12 templateFile: 'plop-templates/components.hbs'
13 }]
14 });
15};
16