diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2012-04-02 02:37:41 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2012-04-02 02:37:41 -0400 |
| commit | 28a5d4fbf8a42649360e9d1e1206c062e0a5ce8d (patch) | |
| tree | 0c0842aab6ca8259f14fc9b760eb742098fa1aaa /alias-angular/scripts/watchr.rb | |
| parent | 0a74881345b16b39487493364bb0c24f8cc47967 (diff) | |
| download | alias-28a5d4fbf8a42649360e9d1e1206c062e0a5ce8d.tar.gz | |
regorg files
Diffstat (limited to 'alias-angular/scripts/watchr.rb')
| -rwxr-xr-x | alias-angular/scripts/watchr.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/alias-angular/scripts/watchr.rb b/alias-angular/scripts/watchr.rb new file mode 100755 index 0000000..89ef656 --- /dev/null +++ b/alias-angular/scripts/watchr.rb @@ -0,0 +1,19 @@ +#!/usr/bin/env watchr + +# config file for watchr http://github.com/mynyml/watchr +# install: gem install watchr +# run: watch watchr.rb +# note: make sure that you have jstd server running (server.sh) and a browser captured + +log_file = File.expand_path(File.dirname(__FILE__) + '/../logs/jstd.log') + +`cd ..` +`touch #{log_file}` + +puts "String watchr... log file: #{log_file}" + +watch( '(app/js|test/unit)' ) do + `echo "\n\ntest run started @ \`date\`" > #{log_file}` + `scripts/test.sh &> #{log_file}` +end + |
