ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit bbdff351d5a0c1dfba2ceead49e5111b53211610
parent 11c475a0e959ed47468e90e6bf86a517b85d6515
Author: whynot123 <xxxxxxxxxxxxxxxxxxxxx@gmail.com>
Date:   Sun, 27 Mar 2016 15:56:15 +0300

Update tools/run.js to print options if present

Diffstat:
Mtools/run.js | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tools/run.js b/tools/run.js @@ -14,11 +14,15 @@ function format(time) { function run(fn, options) { const task = typeof fn.default === 'undefined' ? fn : fn.default; const start = new Date(); - console.log(`[${format(start)}] Starting '${task.name}'...`); + console.log( + `[${format(start)}] Starting '${task.name}${options ? `(${options})` : ''}'...` + ); return task(options).then(() => { const end = new Date(); const time = end.getTime() - start.getTime(); - console.log(`[${format(end)}] Finished '${task.name}' after ${time} ms`); + console.log( + `[${format(end)}] Finished '${task.name}${options ? `(${options})` : ''}' after ${time} ms` + ); }); }