Skip to content

Allow ava.config.json instead of package.json or CLI #1394

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

Closed
nowy opened this issue May 24, 2017 · 1 comment
Closed

Allow ava.config.json instead of package.json or CLI #1394

nowy opened this issue May 24, 2017 · 1 comment

Comments

@nowy
Copy link

nowy commented May 24, 2017

Description

This is a feature request.

There are currently two ways of setting up ava config (prioritised):

  1. CLI arguments
  2. Package.json

Proposal: Add a third way, through ava.config.json

Advantages:

  • Slimmer package.json file
  • Easier to handle environment-specific config
  • More flexibility on project configuration

Ie. This code in package.json, could be defined in ava.config.json

{
  "ava": {
  ...
  }
}

Also adding a flag to specify the config file (falling back to ava.config.json) if need be:

ava --config-file my.ava.config.json

Other technologies that handle this:

I would be willing to submit a PR if approved.
Thanks

@kevva
Copy link
Contributor

kevva commented May 24, 2017

This has been discussed in length in multiple issues already, e.g, #520.

@kevva kevva closed this as completed May 24, 2017
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