Permalink
Browse files

update to readme, needed to escape double quotes on scripts example (#…

  • Loading branch information...
1 parent 07e5737 commit 8ea1f8349da006056a39ff003c13aea022811c2e @PROB8 PROB8 committed with levithomason Aug 20, 2017
Showing with 22 additions and 0 deletions.
  1. +22 −0 README.md
View
@@ -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

0 comments on commit 8ea1f83

Please sign in to comment.