diff --git a/pages/common/nodemon.md b/pages/common/nodemon.md new file mode 100644 index 0000000000..7c2d0cb09a --- /dev/null +++ b/pages/common/nodemon.md @@ -0,0 +1,24 @@ +# nodemon + +> Watch files and automatically restart a node application when changes are detected. +> More information: . + +- Execute the specified file and watch a specific file for changes: + +`nodemon --inspect {{path/to/file.js}}` + +- Manually restart nodemon (note nodemon must already be active for this to work): + +`rs` + +- Ignore specific files: + +`nodemon --ignore {{path/to/file_or_directory}}` + +- Pass arguments to the node application: + +`nodemon {{path/to/file.js}} {{arguments}}` + +- Run non-node scripts: + +`nodemon --exec "{{python --verbose}}" {{path/to/file.py}}`