epilogue.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Examples:
  2. - Output nothing more than stdout+stderr of child processes
  3. $ $0 --raw "npm run watch-less" "npm run watch-js"
  4. - Normal output but without colors e.g. when logging to file
  5. $ $0 --no-color "grunt watch" "http-server" > log
  6. - Custom prefix
  7. $ $0 --prefix "{time}-{pid}" "npm run watch" "http-server"
  8. - Custom names and colored prefixes
  9. $ $0 --names "HTTP,WATCH" -c "bgBlue.bold,bgMagenta.bold" "http-server" "npm run watch"
  10. - Configuring via environment variables with CONCURRENTLY_ prefix
  11. $ CONCURRENTLY_RAW=true CONCURRENTLY_KILL_OTHERS=true $0 "echo hello" "echo world"
  12. - Send input to default
  13. $ $0 --handle-input "nodemon" "npm run watch-js"
  14. rs # Sends rs command to nodemon process
  15. - Send input to specific child identified by index
  16. $ $0 --handle-input "npm run watch-js" nodemon
  17. 1:rs
  18. - Send input to specific child identified by name
  19. $ $0 --handle-input -n js,srv "npm run watch-js" nodemon
  20. srv:rs
  21. - Shortened NPM run commands
  22. $ $0 npm:watch-node npm:watch-js npm:watch-css
  23. - Shortened NPM run command with wildcard (make sure to wrap it in quotes!)
  24. $ $0 "npm:watch-*"
  25. For more details, visit https://github.com/open-cli-tools/concurrently