diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-06-24 19:58:23 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 11:58:23 +0200 |
commit | 1d8fc394945fb4447cec23fbfc61fc8961126b7a (patch) | |
tree | 8969445c4862c3944882f426ed94ab8062129f46 /cli/main.rs | |
parent | f6a41469730e8dcd0995d3e5dd370b9410c65ba4 (diff) |
Add ability to output compiler performance information (#6434)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/cli/main.rs b/cli/main.rs index c94aed244..e20435a00 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -428,7 +428,11 @@ async fn bundle_command( let global_state = GlobalState::new(flags)?; - info!("Bundling {}", module_specifier.to_string()); + info!( + "{} {}", + colors::green("Bundle".to_string()), + module_specifier.to_string() + ); let output = tsc::bundle( &global_state, @@ -442,11 +446,15 @@ async fn bundle_command( debug!(">>>>> bundle END"); if let Some(out_file_) = out_file.as_ref() { - info!("Emitting bundle to {:?}", out_file_); let output_bytes = output.as_bytes(); let output_len = output_bytes.len(); deno_fs::write_file(out_file_, output_bytes, 0o666)?; - info!("{} emitted.", human_size(output_len as f64)); + info!( + "{} {:?} ({})", + colors::green("Emit".to_string()), + out_file_, + colors::gray(human_size(output_len as f64)) + ); } else { println!("{}", output); } |