Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Is it possible to inherit configurations, so that a child config can override just one or more values? #131

Open
mdelapenya opened this issue Apr 24, 2018 · 5 comments

Comments

@mdelapenya
Copy link

No description provided.

@pragmaticivan
Copy link
Contributor

Hey @mdelapenya can you give me more examples of what you mean by inherit? The config can be changed from the config files.

@mdelapenya
Copy link
Author

mdelapenya commented Apr 25, 2018

Yes, for a real project is necessary to maintain several config files, with most of them an exact copy of the production config, but with a few changes.

Instead, I'd like to have production config, and then dev config (i.e.) which inherits from production, but I override just a few properties on it.

@pragmaticivan
Copy link
Contributor

that you can do by just importing the other config with pure javascript, and overwrite the object before you return it.

@mdelapenya
Copy link
Author

I'd love the framework to do it for me ❤️

@pragmaticivan
Copy link
Contributor

If you can privide a reasonable interface, I can take a look.

Using the lang to import custom stuff is pretty standard even in Rails and Phoenix framework

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants