CVarisco / create-component-app

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

Fix template arg not being read according to documentation #42

Closed mosanger closed 7 years ago

mosanger commented 7 years ago

depends on and includes #41

according to docs a template can by used by using the -t option. the script tries to read out a template argument.

So I adjusted the code to use both, either --template=classic or -t classic

also a bit of refactoring to startTemplateGenerator with a given template... and getTemplate was returning the name if given a template, and a path if you chose one through the CLI

CVarisco commented 7 years ago

I checked the code and I think that I can close this PR. But for more security, Can I close this and merge the #43 ? Right ? Thanks man 🥇