Skip to content

Commit

Permalink
spelling and chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisjoshua committed Sep 11, 2012
1 parent e58101e commit 11e0e3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@


Watch files in a directory for changes/updates. Watch files in a directory for changes/updates.


I know that this might not be the best way to do this but it seems to work for right now so I am putting it out there. Simply create a file to execte in the terminal (example below) and point it at the directory you would like to watch. When a file is changed the callback you pass in will execute and you can do whatever you want with the change. I know that this might not be the best way to do this but it seems to work for right now so I am putting it out there. Simply create a file to execute in the terminal (example below) and point it at the directory you would like to watch. When a file is changed the callback you pass in will execute and you can do whatever you want with the change.


I have started using this in conjunction with Grunt.js so I don't have to grunt with each change to my files while developing. I have started using this in conjunction with Grunt.js so I don't have to grunt with each change to my files while developing.


## Example file ## Example (don't forget chmod +x <filename>)


#!/usr/bin/env node #!/usr/bin/env node
/*jshint strict:false*/ /*jshint laxcomma:true strict:false*/
/*globals require*/ /*globals require*/
var exec = require('child_process').exec var exec = require('child_process').exec
, sherpa = require("sherpa") , sherpa = require("sherpa")
Expand Down

0 comments on commit 11e0e3b

Please sign in to comment.