codeBelt / generate-template-files

A simple generator to create custom template files for any application
https://medium.com/@robertsavian/generate-template-files-with-ease-19b320615359
MIT License
209 stars 31 forks source link

[Question] Is there a way I can call multiple options at once #79

Open ermal-abiti opened 2 years ago

ermal-abiti commented 2 years ago
generateTemplateFiles([
 { option: "Create controller", output: "src/controllers"... },
 { option: "Create model", output: "src/models"...},
 { option: "Create route", output:"src/routes" ... },
])

Is there any way I can call these multiple options at once ? For example i wanna create a user controller, route, and model at once (by just giving a name parameter as 'user').

codeBelt commented 2 years ago

Sorry there is not. You would have to create another options and copy all the template files to a single folder and have it output that way. You would have duplicated templates files which is not idea but it could be done.