CVarisco / create-component-app

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

Improved loading of configuration files #56

Closed Prioe closed 6 years ago

Prioe commented 6 years ago

Previously we threw an error if we couldn't find a configuration file. I changed this, so we would only throw if the parsing of the configuration file failed.

This fixes parts of this issue (https://github.com/CVarisco/create-component-app/issues/55).

If the user runs create-component-app without a configuration file, it will no longer report "Bad config file, Please check config file syntax.", but a message informing the user that we couldn't find a configuration file and continue with defaults.

I also moved the example config, which we inlined into the readme, to an example config file, and the comments explaining the different options to a markdown table.

CVarisco commented 6 years ago

Very great job man! Thanks a lot, I merged your work 🙂

I'll publish a new version as soon as possible