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

Support configuration from 'nodemonConfig' in package.json #1028

Merged
merged 3 commits into from
Sep 4, 2017

Conversation

rhodgkins
Copy link
Contributor

Allow nodemonConfig to be used in a projects package.json.
This matches the option of a lot of other development tools - ESLint as eslintConfig , JSHint as jshintConfig, JSCS as jscsConfig but to name a few...!

This feature is entirely additive - if the --config <file> is specified or there's a local nodemon.json then nodemonConfig in the package.json will be ignored.

rhodgkins added 2 commits May 13, 2017 13:15
Implements loading configuration options from the `nodemonConfig` value in the package.json, nodemon.json is still preferred before looking at the new option.
Also includes tests.

Closes remy#873
Add to both the README and `nodemon --help config`.
@emilio-martinez
Copy link

I personally never put the config for nodemon or any of the packages mentioned above in package.json. I always choose to set config on a separate file.

@mattstyles
Copy link

+1 always prefer config in one place and as package.json is a load of config it makes sense. Helps keep config relatively small as well.

@remy remy merged commit fb5da38 into remy:master Sep 4, 2017
@tdd
Copy link

tdd commented Sep 5, 2017

I try and centralize all my configs (Babel, ESLint, StandardJS, Browserlist, etc.) in a single package.json file for my apps, so this would be neat.

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

Successfully merging this pull request may close these issues.

5 participants