CVarisco / create-component-app

Tool to generate different types of React components from the terminal. 💻
MIT License
859 stars 58 forks source link

Avoid asking user to use template if `templateName` exists #77

Open troym9731 opened 6 years ago

troym9731 commented 6 years ago

Even when specifying a templateName in a config file, the "Do you wanna choose a template" prompt comes up.

It seems like now that the config object is a combination of both the args and the config passed by the user, it should be fine to get rid of this prompt and just check for the existence of config.t, config.template, or config.templateName.