Skip to content

Commit 78b0d2a

Browse files
committed
feat(deps): upgrade vite-task for compact task runner summary
Upgrade vite-task to voidzero-dev/vite-task#171 which replaces the verbose full execution summary with compact one-liners. Single-task runs with no cache hit show no summary. Single-task cache hits show a brief 'cache hit' message. Multi-task runs show hit rate and time saved, with a hint to use --verbose for full details. Updates cli.rs to use ParsedCommand (now exposed by vite-task) with .into_command() at dispatch points, and regenerates 25 snap tests.
1 parent 9115175 commit 78b0d2a

File tree

28 files changed

+103
-814
lines changed

28 files changed

+103
-814
lines changed

Cargo.lock

Lines changed: 56 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ dunce = "1.0.5"
8282
fast-glob = "1.0.0"
8383
flate2 = { version = "=1.1.5", features = ["zlib-rs"] }
8484
form_urlencoded = "1.2.1"
85-
fspy = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "846885e5d3cd97e6a517b353a1b54b9da7bb2554" }
85+
fspy = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "fcc662b94410e6f68dececfe8ebf099eb7487ab6" }
8686
futures = "0.3.31"
8787
futures-util = "0.3.31"
8888
glob = "0.3.2"
@@ -181,14 +181,14 @@ vfs = "0.12.1"
181181
vite_command = { path = "crates/vite_command" }
182182
vite_error = { path = "crates/vite_error" }
183183
vite_js_runtime = { path = "crates/vite_js_runtime" }
184-
vite_glob = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "846885e5d3cd97e6a517b353a1b54b9da7bb2554" }
184+
vite_glob = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "fcc662b94410e6f68dececfe8ebf099eb7487ab6" }
185185
vite_install = { path = "crates/vite_install" }
186186
vite_migration = { path = "crates/vite_migration" }
187187
vite_shared = { path = "crates/vite_shared" }
188-
vite_path = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "846885e5d3cd97e6a517b353a1b54b9da7bb2554" }
189-
vite_str = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "846885e5d3cd97e6a517b353a1b54b9da7bb2554" }
190-
vite_task = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "846885e5d3cd97e6a517b353a1b54b9da7bb2554" }
191-
vite_workspace = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "846885e5d3cd97e6a517b353a1b54b9da7bb2554" }
188+
vite_path = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "fcc662b94410e6f68dececfe8ebf099eb7487ab6" }
189+
vite_str = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "fcc662b94410e6f68dececfe8ebf099eb7487ab6" }
190+
vite_task = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "fcc662b94410e6f68dececfe8ebf099eb7487ab6" }
191+
vite_workspace = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "fcc662b94410e6f68dececfe8ebf099eb7487ab6" }
192192
walkdir = "2.5.0"
193193
wax = "0.6.0"
194194
which = "8.0.0"

packages/cli/binding/src/cli.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ use vite_path::{AbsolutePath, AbsolutePathBuf};
1616
use vite_shared::{PrependOptions, prepend_to_path_env};
1717
use vite_str::Str;
1818
use vite_task::{
19-
Command, CommandHandler, ExitStatus, HandledCommand, ScriptCommand, Session, SessionCallbacks,
19+
Command, CommandHandler, ExitStatus, HandledCommand, ParsedCommand, ScriptCommand, Session,
20+
SessionCallbacks,
2021
config::{
2122
UserRunConfig,
2223
user::{EnabledCacheConfig, UserCacheConfig},
@@ -107,7 +108,7 @@ pub enum SynthesizableSubcommand {
107108
enum CLIArgs {
108109
/// vite-task commands (run, cache)
109110
#[command(flatten)]
110-
ViteTask(Command),
111+
ViteTask(ParsedCommand),
111112

112113
/// Built-in subcommands (lint, build, test, etc.)
113114
#[command(flatten)]
@@ -588,7 +589,7 @@ impl CommandHandler for VitePlusCommandHandler {
588589
let resolved = self.resolver.resolve(subcmd, &command.envs, &command.cwd).await?;
589590
Ok(HandledCommand::Synthesized(resolved.into_synthetic_plan_request()))
590591
}
591-
CLIArgs::ViteTask(cmd) => Ok(HandledCommand::ViteTaskCommand(cmd)),
592+
CLIArgs::ViteTask(cmd) => Ok(HandledCommand::ViteTaskCommand(cmd.into_command())),
592593
}
593594
}
594595
}
@@ -824,7 +825,9 @@ pub async fn main(
824825

825826
match cli_args {
826827
CLIArgs::Synthesizable(subcmd) => execute_direct_subcommand(subcmd, &cwd, options).await,
827-
CLIArgs::ViteTask(command) => execute_vite_task_command(command, cwd, options).await,
828+
CLIArgs::ViteTask(command) => {
829+
execute_vite_task_command(command.into_command(), cwd, options).await
830+
}
828831
}
829832
}
830833

0 commit comments

Comments
 (0)