mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 09:02:08 +02:00
watchexec: update page (#10621)
This commit is contained in:
parent
1fca19aa07
commit
9e76252cee
1 changed files with 4 additions and 4 deletions
|
@ -5,16 +5,16 @@
|
||||||
|
|
||||||
- Call `ls -la` when any file in the current directory changes:
|
- Call `ls -la` when any file in the current directory changes:
|
||||||
|
|
||||||
`watchexec -- {{ls -la}}`
|
`watchexec {{ls -la}}`
|
||||||
|
|
||||||
- Run `make` when any JavaScript, CSS and HTML files in the current directory change:
|
- Run `make` when any JavaScript, CSS and HTML file in the current directory changes:
|
||||||
|
|
||||||
`watchexec --exts {{js,css,html}} make`
|
`watchexec --exts {{js,css,html}} make`
|
||||||
|
|
||||||
- Run `make` when any file in the `lib` or `src` subdirectories change:
|
- Run `make` when any file in the `lib` or `src` directory changes:
|
||||||
|
|
||||||
`watchexec --watch {{lib}} --watch {{src}} {{make}}`
|
`watchexec --watch {{lib}} --watch {{src}} {{make}}`
|
||||||
|
|
||||||
- Call/restart `my_server` when any file in the current directory change, sending `SIGKILL` to stop the child process:
|
- Call/restart `my_server` when any file in the current directory changes, sending `SIGKILL` to stop the child process:
|
||||||
|
|
||||||
`watchexec --restart --stop-signal {{SIGKILL}} {{my_server}}`
|
`watchexec --restart --stop-signal {{SIGKILL}} {{my_server}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue