ModusCreateOrg / gimbal

Web Performance Auditing tooling
https://labs.moduscreate.com/gimbal-web-performance-audit-budgeting
MIT License
115 stars 8 forks source link

feat(config): allow variable replacement in yaml config #138

Closed mitchellsimoens closed 5 years ago

mitchellsimoens commented 5 years ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces:

What is the new behavior?

In a YAML config file, you can replace variables. Currently only environment variables are supported but anywhere in the config file you can have:

${env:SOME_VAR_NAME}

And this will use process.env.SOME_VAR_NAME. If the value of that is undefined, then the text is not replaced. If the type is unrecognized (the env part in the sample) then the text is not replaced.

Does this introduce a breaking change?