aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--watchr-docs.rb5
-rw-r--r--watchr.rb3
2 files changed, 3 insertions, 5 deletions
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
diff --git a/watchr.rb b/watchr.rb
index 25aaa01c..c746d7bb 100644
--- a/watchr.rb
+++ b/watchr.rb
@@ -4,6 +4,5 @@
# note: make sure that you have jstd server running (server.sh) and a browser captured
watch( '(src|test|example)/' ) do
- %x{ echo "\n\ntest run started @ `date`" > logs/jstd.log; ./test.sh &> logs/jstd.log & }
- %x{ echo "\n\nlint started @ `date`" > logs/lint.log; rake lint &> logs/lint.log & }
+ system 'echo "\n\ntest run started @ `date`"; ./test.sh '
end