From 95fdb1231f21254f9cf6e68dcee689fb9e3a2b52 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sun, 30 Oct 2011 15:13:22 -0700 Subject: chore(watchr): watchr scripts should output logs to terminal Having the extra level of indirection by using logs/*.log file only makes it more difficult to use these scripts. After this change it will be enough to just start the watchr and watch the terminal it was started in. --- watchr-docs.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'watchr-docs.rb') diff --git a/watchr-docs.rb b/watchr-docs.rb index 239ac675..0fc533e7 100644 --- a/watchr-docs.rb +++ b/watchr-docs.rb @@ -1,8 +1,7 @@ # 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 +# run: watch watchr-docs.rb watch( '^src/|^docs/' ) do - %x{ echo "\n\ndoc run started @ `date`" > logs/docs.log; node docs/src/gen-docs.js &> logs/docs.log & } + system 'echo "\n\ndoc run started @ `date`"; node docs/src/gen-docs.js' end -- cgit v1.2.3