YuKun Liu vor 3 Jahren
Ursprung
Commit
6cefdcc0cf
2 geänderte Dateien mit 8 neuen und 4 gelöschten Zeilen
  1. 1 1
      src/builder.rs
  2. 7 3
      src/server/mod.rs

+ 1 - 1
src/builder.rs

@@ -339,7 +339,7 @@ fn prettier_build(mut cmd: Command) -> anyhow::Result<Vec<Diagnostic>> {
             .unwrap()
             .tick_chars("/|\\- "),
     );
-    pb.set_message("💼 Waiting to strart build the project...");
+    pb.set_message("💼 Waiting to start build the project...");
 
     let mut command = cmd.spawn()?;
     let reader = std::io::BufReader::new(command.stdout.take().unwrap());

+ 7 - 3
src/server/mod.rs

@@ -460,9 +460,13 @@ fn print_console_info(port: u16, config: &CrateConfig, options: PrettierOptions)
     } else {
         println!(
             "Project Reloaded: {}\n",
-            format!("Changed {} files.", options.changed.len())
-                .purple()
-                .bold()
+            format!(
+                "Changed {} files. [{}]",
+                options.changed.len(),
+                chrono::Local::now().format("%H:%M:%S").to_string().dimmed()
+            )
+            .purple()
+            .bold()
         );
     }
     println!(