| 1 | Usage: nodemon [options] [script.js] [args]
|
|---|
| 2 |
|
|---|
| 3 | Options:
|
|---|
| 4 |
|
|---|
| 5 | --config file ............ alternate nodemon.json config file to use
|
|---|
| 6 | -e, --ext ................ extensions to look for, ie. js,pug,hbs.
|
|---|
| 7 | -x, --exec app ........... execute script with "app", ie. -x "python -v".
|
|---|
| 8 | -w, --watch path ......... watch directory "path" or files. use once for
|
|---|
| 9 | each directory or file to watch.
|
|---|
| 10 | -i, --ignore ............. ignore specific files or directories.
|
|---|
| 11 | -V, --verbose ............ show detail on what is causing restarts.
|
|---|
| 12 | -- <your args> ........... to tell nodemon stop slurping arguments.
|
|---|
| 13 |
|
|---|
| 14 | Note: if the script is omitted, nodemon will try to read "main" from
|
|---|
| 15 | package.json and without a nodemon.json, nodemon will monitor .js, .mjs, .coffee,
|
|---|
| 16 | .litcoffee, and .json by default.
|
|---|
| 17 |
|
|---|
| 18 | For advanced nodemon configuration use nodemon.json: nodemon --help config
|
|---|
| 19 | See also the sample: https://github.com/remy/nodemon/wiki/Sample-nodemon.json
|
|---|
| 20 |
|
|---|
| 21 | Examples:
|
|---|
| 22 |
|
|---|
| 23 | $ nodemon server.js
|
|---|
| 24 | $ nodemon -w ../foo server.js apparg1 apparg2
|
|---|
| 25 | $ nodemon --exec python app.py
|
|---|
| 26 | $ nodemon --exec "make build" -e "styl hbs"
|
|---|
| 27 | $ nodemon app.js -- --config # pass config to app.js
|
|---|
| 28 |
|
|---|
| 29 | \x1B[1mAll options are documented under: \x1B[4mnodemon --help options\x1B[0m
|
|---|