config-merger
v1.0.10
Published
Allows for crazy config file setups. merges multiple files into one file.
Downloads
12
Readme
Config-Merger
Allows for crazy config file setups. merges multiple files into one file.
npm install config-merger
##Create a configuration in your package.json
Create a section in your package.json config like this
"config-merger": [
{
"company1": {
"output": "app.config.json",
"srcFolder": "company1_configs"
}
},
{
"company2": {
"output": "app.config.json",
"srcFolder": "company2_configs"
}
}
],
...
##Command line API
Then you could set up a npm script with something like
NODE_ENV=production config-merger --config=company1
Profit !!!