You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: support using ‘nodemonConfig’ in package.json
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#873
* docs: update for using ‘nodemonConfig’ in package.json
Add to both the README and `nodemon --help config`.
#1028
Copy file name to clipboardexpand all lines: README.md
+19
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,25 @@ The above `nodemon.json` file might be my global config so that I have support f
92
92
93
93
A further example of options can be seen in [sample-nodemon.md](https://github.com/remy/nodemon/blob/master/doc/sample-nodemon.md)
94
94
95
+
### package.json
96
+
97
+
If you want to keep all your package configurations in one place, nodemon supports using `package.json` for configuration.
98
+
Simply specify the config in the same format as you would for a config file but under `nodemonConfig` in the `package.json` file, for example, take the following `package.json`:
99
+
100
+
{
101
+
"name": "nodemon",
102
+
"homepage": "http://nodemon.io",
103
+
...
104
+
... other standard package.json values
105
+
...
106
+
"nodemonConfig": {
107
+
"ignore": ["test/*", "docs/*"],
108
+
"delay": "2500"
109
+
}
110
+
}
111
+
112
+
Note that if you specify a `--config` file or provide a local `nodemon.json` any `package.json` config is ignored.
113
+
95
114
*This section needs better documentation, but for now you can also see `nodemon --help config` ([also here](https://github.com/remy/nodemon/blob/master/doc/cli/config.txt))*.
0 commit comments