mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
Docs about --. [skip ci]
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
tools like forever.js.
|
||||
-v, --version ............ current nodemon version.
|
||||
-h, --help ............... you're looking at it.
|
||||
--help <topic> ........... help on a specific feature. Try "--help topics"
|
||||
--help <topic> ........... help on a specific feature. Try "--help topics".
|
||||
-- <your args> ........... to tell nodemon stop slurping arguments.
|
||||
|
||||
Note: if the script is omitted, nodemon will try to read "main" from
|
||||
package.json and without a nodemon.json, nodemon will monitor .js, .coffee,
|
||||
@@ -32,5 +33,6 @@
|
||||
$ PORT=8000 nodemon --debug-brk server.js
|
||||
$ nodemon --exec python app.py
|
||||
$ nodemon --exec "make build" -e "styl hbs"
|
||||
$ nodemon app.js -- -L
|
||||
|
||||
For more details see http://github.com/remy/nodemon/
|
||||
|
||||
10
faq.md
10
faq.md
@@ -16,6 +16,16 @@ Create an nodemon.json file with the setting:
|
||||
|
||||
This will leave the STDIN to your application rather than listening for the `rs` command to restart.
|
||||
|
||||
# My script arguments are being taken by nodemon
|
||||
|
||||
Use the `--` switch to tell nodemon to ignore all arguments after this point. So to pass `-L` to your script instead of nodemon, use:
|
||||
|
||||
```
|
||||
$ nodemon app.js -- -L -opt2 -opt3
|
||||
```
|
||||
|
||||
nodemon will ignore all script arguments after `--` and pass them to your script.
|
||||
|
||||
# Help! My changes aren't being detected!
|
||||
|
||||
nodemon has three potential methods it uses to look for file changes. First, it polls using the find command to search for files modified within the last second. This method works on systems with a BSD based find (Mac, for example).
|
||||
|
||||
Reference in New Issue
Block a user