help.txt 1.2 KB

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