my-label-input directive
[angular-drzb] / scripts / watchr.rb
1 #!/usr/bin/env watchr
2
3 # config file for watchr http://github.com/mynyml/watchr
4 # install: gem install watchr
5 # run: watch watchr.rb
6 # note: make sure that you have jstd server running (server.sh) and a browser captured
7
8 log_file = File.expand_path(File.dirname(__FILE__) + '/../logs/jstd.log')
9
10 `cd ..`
11 `touch #{log_file}`
12
13 puts "String watchr... log file: #{log_file}"
14
15 watch( '(app/js|test/unit)' )  do
16   `echo "\n\ntest run started @ \`date\`" > #{log_file}`
17   `scripts/test.sh &> #{log_file}`
18 end
19