config-merger

1.0.10 • Public • Published

Config-Merger

Allows for crazy config file setups. merges multiple files into one file.

Build Status Code Climate Test Coverage Issue Count

Install

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 !!!

/config-merger/

    Package Sidebar

    Install

    npm i config-merger

    Weekly Downloads

    1

    Version

    1.0.10

    License

    MIT

    Last publish

    Collaborators

    • moebious