Skip to content
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

Consider allowing configuration to be loaded from package.json. #56

Open
wtgtybhertgeghgtwtg opened this issue Feb 12, 2017 · 2 comments

Comments

@wtgtybhertgeghgtwtg
Copy link

Like what yargs does with pkgConf. If I had a package.json like

"someKey": {
  "someFlag": "someValue"
}

and told meow to look at someKey, it'd take that configuration into account. Maybe you could even pass someKey as an argument, like

myTool -configKey someKey
@sindresorhus
Copy link
Owner

Hmm, I kinda like the idea, but I have to consider whether it's worth bundling it. It's easy enough to use pkgConf directly. The benefit would be discovery and being able to recommend that practice.

and told meow to look at someKey

When enabled it can just look for a key that matches the package name.

@wtgtybhertgeghgtwtg
Copy link
Author

Wouldn't you end up hitting the file system twice for the same package.json if you used pkg-conf?

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

No branches or pull requests

2 participants