Skip to content

Instantly share code, notes, and snippets.

@kaddopur
Created June 20, 2012 14:29
Show Gist options
  • Save kaddopur/2960167 to your computer and use it in GitHub Desktop.
Save kaddopur/2960167 to your computer and use it in GitHub Desktop.
watchr script example
watch('.*\.jade') {|md| system("jade -P -O .. #{md[0]}")}
watch('.*\.styl') {|md| system("stylus -o ../css #{md[0]}")}
watch('.*\.coffee') {|md| system("coffee -bc -o ../js #{md[0]}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment