Skip to content

Commit 08cdc56

Browse files
authored
fix(task): summary text align (#191)
1 parent 5ec3c99 commit 08cdc56

17 files changed

Lines changed: 54 additions & 54 deletions

File tree

crates/vite_task/src/ui.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl Display for ExecutionSummary {
176176
f,
177177
"{} {} {} {} {}",
178178
"Statistics:".style(Style::new().bold()),
179-
format!("{} tasks", total).style(Style::new().bright_white()),
179+
format!(" {} tasks", total).style(Style::new().bright_white()),
180180
format!("• {} cache hits", cache_hits).style(Style::new().green()),
181181
format!("• {} cache misses", cache_misses).style(CACHE_MISS_STYLE),
182182
if failed > 0 {

packages/cli/snap-tests/associate-existing-cache/snap.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hello
77
Vite+ Task Runner • Execution Summary
88
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
99

10-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
10+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
1111
Performance: 0% cache hit rate
1212

1313
Task Details:
@@ -25,7 +25,7 @@ hello
2525
Vite+ Task Runner • Execution Summary
2626
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2727

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

3131
Task Details:
@@ -44,7 +44,7 @@ world
4444
Vite+ Task Runner • Execution Summary
4545
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4646

47-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
47+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
4848
Performance: 0% cache hit rate
4949

5050
Task Details:

packages/cli/snap-tests/cache-clean/snap.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hello
77
Vite+ Task Runner • Execution Summary
88
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
99

10-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
10+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
1111
Performance: 0% cache hit rate
1212

1313
Task Details:
@@ -25,7 +25,7 @@ hello
2525
Vite+ Task Runner • Execution Summary
2626
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2727

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

3131
Task Details:
@@ -44,7 +44,7 @@ hello
4444
Vite+ Task Runner • Execution Summary
4545
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4646

47-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
47+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
4848
Performance: 0% cache hit rate
4949

5050
Task Details:
@@ -63,7 +63,7 @@ hello
6363
Vite+ Task Runner • Execution Summary
6464
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6565

66-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
66+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
6767
Performance: 0% cache hit rate
6868

6969
Task Details:

packages/cli/snap-tests/cache-miss-command-change/snap.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bar
1010
Vite+ Task Runner • Execution Summary
1111
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1212

13-
Statistics: 2 tasks • 0 cache hits • 2 cache misses
13+
Statistics: 2 tasks • 0 cache hits • 2 cache misses
1414
Performance: 0% cache hit rate
1515

1616
Task Details:
@@ -35,7 +35,7 @@ bar
3535
Vite+ Task Runner • Execution Summary
3636
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3737

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

4141
Task Details:
@@ -57,7 +57,7 @@ bar
5757
Vite+ Task Runner • Execution Summary
5858
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5959

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

6363
Task Details:

packages/cli/snap-tests/change-passthrough-env-config/snap.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $ node -p process.env.MY_ENV
77
Vite+ Task Runner • Execution Summary
88
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
99

10-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
10+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
1111
Performance: 0% cache hit rate
1212

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

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

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

47-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
47+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
4848
Performance: 0% cache hit rate
4949

5050
Task Details:

packages/cli/snap-tests/check-oxlint-env/snap.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ OXLINT_TSGOLINT_PATH=/path/to/oxlint_tsgolint1
77
Vite+ Task Runner • Execution Summary
88
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
99

10-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
10+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
1111
Performance: 0% cache hit rate
1212

1313
Task Details:
@@ -27,7 +27,7 @@ OXLINT_TSGOLINT_PATH=/path/to/oxlint_tsgolint2
2727
Vite+ Task Runner • Execution Summary
2828
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2929

30-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
30+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
3131
Performance: 0% cache hit rate
3232

3333
Task Details:

packages/cli/snap-tests/exit-code/snap.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ success
77
Vite+ Task Runner • Execution Summary
88
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
99

10-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
10+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
1111
Performance: 0% cache hit rate
1212

1313
Task Details:
@@ -25,7 +25,7 @@ success
2525
Vite+ Task Runner • Execution Summary
2626
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2727

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

3131
Task Details:
@@ -43,7 +43,7 @@ failure
4343
Vite+ Task Runner • Execution Summary
4444
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4545

46-
Statistics: 1 tasks • 0 cache hits • 1 cache misses • 1 failed
46+
Statistics: 1 tasks • 0 cache hits • 1 cache misses • 1 failed
4747
Performance: 0% cache hit rate
4848

4949
Task Details:
@@ -61,7 +61,7 @@ failure
6161
Vite+ Task Runner • Execution Summary
6262
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6363

64-
Statistics: 1 tasks • 0 cache hits • 1 cache misses • 1 failed
64+
Statistics: 1 tasks • 0 cache hits • 1 cache misses • 1 failed
6565
Performance: 0% cache hit rate
6666

6767
Task Details:

packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ a
77
Vite+ Task Runner • Execution Summary
88
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
99

10-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
10+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
1111
Performance: 0% cache hit rate
1212

1313
Task Details:
@@ -25,7 +25,7 @@ b
2525
Vite+ Task Runner • Execution Summary
2626
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2727

28-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
28+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
2929
Performance: 0% cache hit rate
3030

3131
Task Details:
@@ -43,7 +43,7 @@ a
4343
Vite+ Task Runner • Execution Summary
4444
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4545

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

4949
Task Details:
@@ -61,7 +61,7 @@ b
6161
Vite+ Task Runner • Execution Summary
6262
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6363

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

6767
Task Details:

packages/cli/snap-tests/individual-cache-for-envs/snap.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $ node -p process.env.FOO
77
Vite+ Task Runner • Execution Summary
88
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
99

10-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
10+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
1111
Performance: 0% cache hit rate
1212

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

28-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
28+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
2929
Performance: 0% cache hit rate
3030

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

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

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

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

6767
Task Details:

packages/cli/snap-tests/pass-no-color-env/snap.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NO_COLOR=true, CI=true
77
Vite+ Task Runner • Execution Summary
88
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
99

10-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
10+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
1111
Performance: 0% cache hit rate
1212

1313
Task Details:
@@ -25,7 +25,7 @@ NO_COLOR=false, CI=true
2525
Vite+ Task Runner • Execution Summary
2626
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2727

28-
Statistics: 1 tasks • 0 cache hits • 1 cache misses
28+
Statistics: 1 tasks • 0 cache hits • 1 cache misses
2929
Performance: 0% cache hit rate
3030

3131
Task Details:

0 commit comments

Comments
 (0)