Watches files in a directory and executes actions when they change, such as running tests or compiling assets.