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
Copy file name to clipboardexpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ For use during development of a node.js based application.
6
6
7
7
nodemon will watch the files in the directory in which nodemon was started, and if any files change, nodemon will automatically restart your node application.
8
8
9
-
nodemon does **not** require *any* changes to your code or method of development. nodemon simply wraps your node application and keeps an eye on any files that have changed. Remember that nodemon is a replacement wrapper for `node`, think of it as replacing the word "node" on the command line when you run your script.
9
+
nodemon does **not** require *any* changes to your code or method of development. nodemon wraps your node application and keeps an eye on any files that have changed. Remember that nodemon is a replacement wrapper for `node`, think of it as replacing the word "node" on the command line when you run your script.
[](https://travis-ci.org/remy/nodemon)[](#backers)[](#sponsors)
@@ -71,7 +71,7 @@ nodemon was originally written to restart hanging processes such as web servers,
71
71
72
72
## Manual restarting
73
73
74
-
Whilst nodemon is running, if you need to manually restart your application, instead of stopping and restart nodemon, you can simply type `rs` with a carriage return, and nodemon will restart your process.
74
+
Whilst nodemon is running, if you need to manually restart your application, instead of stopping and restart nodemon, you can type `rs` with a carriage return, and nodemon will restart your process.
75
75
76
76
## Config files
77
77
@@ -96,14 +96,14 @@ A config file can take any of the command line arguments as JSON key values, for
96
96
}
97
97
```
98
98
99
-
The above `nodemon.json` file might be my global config so that I have support for ruby files and processing files, and I can simply run `nodemon demo.pde` and nodemon will automatically know how to run the script even though out of the box support for processing scripts.
99
+
The above `nodemon.json` file might be my global config so that I have support for ruby files and processing files, and I can run `nodemon demo.pde` and nodemon will automatically know how to run the script even though out of the box support for processing scripts.
100
100
101
101
A further example of options can be seen in [sample-nodemon.md](https://github.com/remy/nodemon/blob/master/doc/sample-nodemon.md)
102
102
103
103
### package.json
104
104
105
105
If you want to keep all your package configurations in one place, nodemon supports using `package.json` for configuration.
106
-
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`:
106
+
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`:
107
107
108
108
```json
109
109
{
@@ -267,7 +267,7 @@ Note that the `process.kill` is *only* called once your shutdown jobs are comple
267
267
268
268
## Triggering events when nodemon state changes
269
269
270
-
If you want growl like notifications when nodemon restarts or to trigger an action when an event happens, then you can either `require` nodemon or simply add event actions to your `nodemon.json` file.
270
+
If you want growl like notifications when nodemon restarts or to trigger an action when an event happens, then you can either `require` nodemon or add event actions to your `nodemon.json` file.
271
271
272
272
For example, to trigger a notification on a Mac when nodemon restarts, `nodemon.json` looks like this:
Copy file name to clipboardexpand all lines: faq.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This is being added to as common issues occur on the [issues](http://github.com/
4
4
5
5
This is a working document, and if it makes sense, I'll take pull requests to help make it better.
6
6
7
-
##nodemon doesn't work with my REPL
7
+
# nodemon doesn't work with my REPL
8
8
9
9
Create an nodemon.json file with the setting:
10
10
@@ -16,6 +16,10 @@ Create an nodemon.json file with the setting:
16
16
17
17
This will leave the STDIN to your application rather than listening for the `rs` command to restart.
18
18
19
+
# Strange/failing behaviour starting the (node-based) executable
20
+
21
+
By default, nodemon will try to fork your node scripts ([background reading](https://github.com/remy/nodemon/issues/1025)), however, there are some edge cases where that won't suit your needs. Most of the time the default configuration should be fine, but if you want to force nodemon to spawn your node process, use the `--spawn` option.
22
+
19
23
# My script arguments are being taken by nodemon
20
24
21
25
Use the `--` switch to tell nodemon to ignore all arguments after this point. So to pass `-L` to your script instead of nodemon, use:
0 commit comments