Skip to content

Commit 95fdb12

Browse files
committed
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.
1 parent ef875ad commit 95fdb12

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

watchr-docs.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# config file for watchr http://github.com/mynyml/watchr
22
# install: gem install watchr
3-
# run: watch watchr.rb
4-
# note: make sure that you have jstd server running (server.sh) and a browser captured
3+
# run: watch watchr-docs.rb
54

65
watch( '^src/|^docs/' ) do
7-
%x{ echo "\n\ndoc run started @ `date`" > logs/docs.log; node docs/src/gen-docs.js &> logs/docs.log & }
6+
system 'echo "\n\ndoc run started @ `date`"; node docs/src/gen-docs.js'
87
end

watchr.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
# note: make sure that you have jstd server running (server.sh) and a browser captured
55

66
watch( '(src|test|example)/' ) do
7-
%x{ echo "\n\ntest run started @ `date`" > logs/jstd.log; ./test.sh &> logs/jstd.log & }
8-
%x{ echo "\n\nlint started @ `date`" > logs/lint.log; rake lint &> logs/lint.log & }
7+
system 'echo "\n\ntest run started @ `date`"; ./test.sh '
98
end

0 commit comments

Comments
 (0)