Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/vite_task/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl Display for ExecutionSummary {
f,
"{} {} {} {} {}",
"Statistics:".style(Style::new().bold()),
format!("{} tasks", total).style(Style::new().bright_white()),
format!(" {} tasks", total).style(Style::new().bright_white()),
format!("• {} cache hits", cache_hits).style(Style::new().green()),
format!("• {} cache misses", cache_misses).style(CACHE_MISS_STYLE),
if failed > 0 {
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/snap-tests/associate-existing-cache/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ hello
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -25,7 +25,7 @@ hello
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
Expand All @@ -44,7 +44,7 @@ world
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/snap-tests/cache-clean/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ hello
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -25,7 +25,7 @@ hello
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
Expand All @@ -44,7 +44,7 @@ hello
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -63,7 +63,7 @@ hello
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/snap-tests/cache-miss-command-change/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bar
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 2 tasks • 0 cache hits • 2 cache misses
Statistics: 2 tasks • 0 cache hits • 2 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -35,7 +35,7 @@ bar
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 2 tasks • 1 cache hits • 1 cache misses
Statistics: 2 tasks • 1 cache hits • 1 cache misses
Performance: 50% cache hit rate, <variable>ms saved in total

Task Details:
Expand All @@ -57,7 +57,7 @@ bar
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $ node -p process.env.MY_ENV
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -25,7 +25,7 @@ $ node -p process.env.MY_ENV (✓ cache hit, replaying)
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
Expand All @@ -44,7 +44,7 @@ $ node -p process.env.MY_ENV (✗ cache miss: envs changed, executing)
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/snap-tests/check-oxlint-env/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ OXLINT_TSGOLINT_PATH=/path/to/oxlint_tsgolint1
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -27,7 +27,7 @@ OXLINT_TSGOLINT_PATH=/path/to/oxlint_tsgolint2
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/snap-tests/exit-code/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ success
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -25,7 +25,7 @@ success
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
Expand All @@ -43,7 +43,7 @@ failure
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses • 1 failed
Statistics: 1 tasks • 0 cache hits • 1 cache misses • 1 failed
Performance: 0% cache hit rate

Task Details:
Expand All @@ -61,7 +61,7 @@ failure
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses • 1 failed
Statistics: 1 tasks • 0 cache hits • 1 cache misses • 1 failed
Performance: 0% cache hit rate

Task Details:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -25,7 +25,7 @@ b
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -43,7 +43,7 @@ a
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
Expand All @@ -61,7 +61,7 @@ b
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/snap-tests/individual-cache-for-envs/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $ node -p process.env.FOO
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -25,7 +25,7 @@ $ node -p process.env.FOO (✗ cache miss: envs changed, executing)
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -43,7 +43,7 @@ $ node -p process.env.FOO (✓ cache hit, replaying)
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
Expand All @@ -61,7 +61,7 @@ $ node -p process.env.FOO (✓ cache hit, replaying)
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/snap-tests/pass-no-color-env/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ NO_COLOR=true, CI=true
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -25,7 +25,7 @@ NO_COLOR=false, CI=true
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Finished in <variable>ms on 2 files with <variable> rules using <variable> threa
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 2 tasks • 0 cache hits • 2 cache misses
Statistics: 2 tasks • 0 cache hits • 2 cache misses
Performance: 0% cache hit rate

Task Details:
Expand Down Expand Up @@ -43,7 +43,7 @@ Finished in <variable>ms on 2 files with <variable> rules using <variable> threa
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 2 tasks • 1 cache hits • 1 cache misses
Statistics: 2 tasks • 1 cache hits • 1 cache misses
Performance: 50% cache hit rate, <variable>ms saved in total

Task Details:
Expand Down
16 changes: 8 additions & 8 deletions packages/cli/snap-tests/plain-terminal-ui/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ input_content 1
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -25,7 +25,7 @@ input_content 1
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
Expand All @@ -43,7 +43,7 @@ input_content 2
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -61,7 +61,7 @@ input_content 2
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -79,7 +79,7 @@ input_content undefined
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -98,7 +98,7 @@ bar undefined
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -117,7 +117,7 @@ bar undefined
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand All @@ -136,7 +136,7 @@ hello from subfolder
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 0 cache hits • 1 cache misses
Statistics: 1 tasks • 0 cache hits • 1 cache misses
Performance: 0% cache hit rate

Task Details:
Expand Down
Loading
Loading