-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A proposed solution to the problem of overwriting configurations #6
Comments
You're right - this is much cleaner than my ideas. We would obviously have to create a fork of the deep merge library (it's in there temporarily because the author can't push a bug fix needed by Warlock until his npm permissions get reset). The only thing I might change is the syntax itself. Maybe something shorter like just "r" or "ow" (overwrite). We could also just pick a shorthand character sequence like {
"tasks": {
"karma": {
"single-run": {
"^browsers": [ "..." ]
}
}
} Anyway, great idea!!! |
I prefer I also originally considered using |
I prefer However, we probably don't want to just change What do you think? |
Good plan. I'll write a test case for it and submit a PR to |
|
As you mentioned in the Wiki, currently there is no functionality to completely overwrite a configuration object or value. I'm proposing a solution, which if you accept, I'll happily submit a PR for.
I'm proposing the following syntax for completely overwriting/replacing a configuration:
A small change in
deepmerge.js
makes this possible: Merott@9ff0818Do you see any problems with that approach?
The text was updated successfully, but these errors were encountered: