Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

feature[cli] prettier output

  • Loading branch information...
commit 625f23a38aef65279c863c96f0fd1280fc9aa35e 1 parent b9d1e67
@jgallen23 authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 bin/reloadr.js
View
12 bin/reloadr.js
@@ -35,9 +35,19 @@ if (folders.length == 0) {
}
reloadr.start(folders, function() {
+ console.log('');
console.log('LiveReload server started. Watching: ' + folders.join(','));
+ console.log('');
});
+var timeout;
+var files = [];
reloadr.changed(function(filepath) {
- console.log('File changed: '+ filepath);
+ console.log('\tFile changed: '+ filepath);
+ if (timeout) {
+ clearTimeout(timeout);
+ }
+ timeout = setTimeout(function() {
+ console.log('');
+ }, 1000);
});
Please sign in to comment.
Something went wrong with that request. Please try again.