|
| 1 | +[1]> vite run test # skip script3 when script2 failed |
| 2 | +$ echo 'success 1' |
| 3 | +success 1 |
| 4 | + |
| 5 | + |
| 6 | +$ node failure.js |
| 7 | +failure |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 12 | + Vite+ Task Runner • Execution Summary |
| 13 | +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 14 | + |
| 15 | +Statistics: 3 tasks • 0 cache hits • 3 cache misses • 1 failed |
| 16 | +Performance: 0% cache hit rate |
| 17 | + |
| 18 | +Task Details: |
| 19 | +──────────────────────────────────────────────── |
| 20 | + [1] script1: $ echo 'success 1' ✓ |
| 21 | + → Cache miss: no previous cache entry found |
| 22 | + ······················································· |
| 23 | + [2] script2: $ node failure.js ✗ (exit code: 1) |
| 24 | + → Cache miss: no previous cache entry found |
| 25 | + ······················································· |
| 26 | + [3] test: $ vite run script3 ⊘ (skipped: dependency failed) |
| 27 | + → Cache miss: no previous cache entry found |
| 28 | +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 29 | + |
| 30 | +[1]> vite run ready # support nested tasks |
| 31 | +$ echo 'success 1' (✓ cache hit, replaying) |
| 32 | +success 1 |
| 33 | + |
| 34 | + |
| 35 | +$ node failure.js |
| 36 | +failure |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 42 | + Vite+ Task Runner • Execution Summary |
| 43 | +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 44 | + |
| 45 | +Statistics: 4 tasks • 1 cache hits • 3 cache misses • 1 failed |
| 46 | +Performance: 25% cache hit rate, <variable>ms saved in total |
| 47 | + |
| 48 | +Task Details: |
| 49 | +──────────────────────────────────────────────── |
| 50 | + [1] script1: $ echo 'success 1' ✓ |
| 51 | + → Cache hit - output replayed - <variable>ms saved |
| 52 | + ······················································· |
| 53 | + [2] script2: $ node failure.js ✗ (exit code: 1) |
| 54 | + → Cache miss: no previous cache entry found |
| 55 | + ······················································· |
| 56 | + [3] test: $ vite run script3 ⊘ (skipped: dependency failed) |
| 57 | + → Cache miss: no previous cache entry found |
| 58 | + ······················································· |
| 59 | + [4] ready: $ vite run script4 ⊘ (skipped: dependency failed) |
| 60 | + → Cache miss: no previous cache entry found |
| 61 | +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
0 commit comments