Open Saturate opened 7 years ago
Started work on this issue in https://github.com/Saturate/polymerase/tree/feat/configuration-reader
Let's put focus on this one. Because all tasks touches the config. But I see you're already well ahead on this issue.
Wrote some tests, and will write some more before merge. :-)
We want to have a modular configuration.
Ex.
Merge order: default -> %ENV% -> local
Configuration
The configuration consists of JavaScript modules. These modules are merged to form a final config. It's not JSON as JavaScript gives us the ability to use comments and sometimes even allow us to do more things with the configuration, like dynamic timestamps.
Configuration files
Each configuration file should be named to fit this regex pattern
Config(\.?\w*).js
exConfig.%optionalScope%.js
Ex.
Config.IIS.js
,Config.js
orConfig.SCSS.js
TODO: