generate-template-files
generate-template-files copied to clipboard
[Question] Is there a way I can call multiple options at once
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').
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.