Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update to readme, needed to escape double quotes on scripts example (#…
  • Loading branch information
JNaeemGitonga authored and levithomason committed Aug 20, 2017
1 parent 07e5737 commit 8ea1f83
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Expand Up @@ -118,6 +118,28 @@ OPTIONS:

It will watch the given directories (defaults to the current working directory) with `watchTree` and run the given command every time a file changes.

### Examples

As stated above the pattern is:

watch <command> [...directory] [OPTIONS]

To run the watch command in the terminal you have to write the following:

watch 'npm run test -s' directory

As the command has to be written in quotation marks Windows users may need to use double quotes rather than single quotes

watch "npm run test -s" directory

Note: Because Windows users may need to use double quotes rather than single quotes they need to escape the them in npm scripts

"scripts": {
"watch:osx": "watch 'npm run test -s' source"
"watch:windows": "watch \"npm run test -s\" source",
}


## Contributing

### Releasing
Expand Down

0 comments on commit 8ea1f83

Please sign in to comment.