-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Separate config keys from CLI flags #1046
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
Comments
Sounds good. This would also be a good opportunity to document the package.json options separately instead of just referring to the CLI flags and show a JSON config dump. |
Hey guys, |
@omerbn AVA loads config from Line 24 in 262911f
It is passed to Line 74 in 262911f
The goal is to pass a different object to |
@novemberborn what keys in particular are to be mapped in configuration object? Like the keys we want to be used as |
Hi @yatharthk. There've been a few developments since I started this issue. We won't have an I think a good place to start would be to stop passing |
@novemberborn Thanks. Shall I pick up the task of pulling out the |
Hey @yatharthk,
This would be the one.
Thanks for volunteering! Could you check in with @ThomasBem first? He's running into an issue for which this would be the solution, though there's a workaround available to him as well. See discussion in #1198 (comment). |
@novemberborn Thanks for pointing that out for me. 👍 |
@yatharthk looks like @ThomasBem is working around the issue. Do you want to take this then? |
@novemberborn Would love to. Can you please guide me with proceeding on this? Thanks. |
@yatharthk sure, feel free to post your questions here. |
@ThomasBem I'm planning to pick this issue for removing the |
You're correct, and go ahead. |
@novemberborn I'm working on this now. Would be great if you could hint me on the right approach to merge |
I think pick the correct default values out of |
@novemberborn So here's what I think: Instead of passing |
You still need to provide default values based on |
Okay I got your point here. The thing that's bit tricky for me here is understanding what you talk about picking default values out of |
Ah! I mean when providing Line 73 in b886c5b
default: { failFast: conf.failFast, serial: conf.serial } and so forth.
|
Currently the config object in the
package.json
is passed as-is tomeow
, providing default values for the CLI flags. This means that config keys need to match the CLI flags. CLI flags are singular, but sometimes config keys are better when pluralized. E.g.sources
versussource
, and the suggestedextension
flag in #631 versusextensions
.@avajs/core how about we change some of the config keys to be plurals and map them to
meow
's default incli.js
?The text was updated successfully, but these errors were encountered: