From c86c520207a83cf769bdf7bc68f893e99952c6ec Mon Sep 17 00:00:00 2001 From: Matt Lyons Date: Wed, 14 Dec 2016 13:38:50 -0600 Subject: [PATCH] Include Time in Verbose Message (#334) --- bin/cmd.js | 3 ++- readme.markdown | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/bin/cmd.js b/bin/cmd.js index 18e5908..59a43eb 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -59,7 +59,8 @@ function bundle () { outStream.on('exit', function () { if (verbose && !didError) { console.error(bytes + ' bytes written to ' + outfile - + ' (' + (time / 1000).toFixed(2) + ' seconds)' + + ' (' + (time / 1000).toFixed(2) + ' seconds) at ' + + new Date().toLocaleTimeString() ); } }); diff --git a/readme.markdown b/readme.markdown index 0744306..0ddc29f 100644 --- a/readme.markdown +++ b/readme.markdown @@ -31,12 +31,12 @@ You can use `-v` to get more verbose output to show when a file was written and ``` $ watchify browser.js -d -o static/bundle.js -v -610598 bytes written to static/bundle.js (0.23 seconds) -610606 bytes written to static/bundle.js (0.10 seconds) -610597 bytes written to static/bundle.js (0.14 seconds) -610606 bytes written to static/bundle.js (0.08 seconds) -610597 bytes written to static/bundle.js (0.08 seconds) -610597 bytes written to static/bundle.js (0.19 seconds) +610598 bytes written to static/bundle.js (0.23 seconds) at 8:31:25 PM +610606 bytes written to static/bundle.js (0.10 seconds) at 8:45:59 PM +610597 bytes written to static/bundle.js (0.14 seconds) at 8:46:02 PM +610606 bytes written to static/bundle.js (0.08 seconds) at 8:50:13 PM +610597 bytes written to static/bundle.js (0.08 seconds) at 8:58:16 PM +610597 bytes written to static/bundle.js (0.19 seconds) at 9:10:45 PM ``` # usage