|
1 | 1 | > vite run hello # create the cache for 'echo hello' |
2 | | -$ echo hello ⊘ cache disabled: built-in command |
3 | | -hello |
| 2 | +$ vite fmt |
4 | 3 |
|
5 | 4 |
|
6 | 5 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
7 | 6 | Vite+ Task Runner • Execution Summary |
8 | 7 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
9 | 8 |
|
10 | | -Statistics: 1 tasks • 0 cache hits • 0 cache misses • 1 cache disabled |
| 9 | +Statistics: 1 tasks • 0 cache hits • 1 cache misses |
11 | 10 | Performance: 0% cache hit rate |
12 | 11 |
|
13 | 12 | Task Details: |
14 | 13 | ──────────────────────────────────────────────── |
15 | | - [1] hello: $ echo hello ✓ |
16 | | - → Cache disabled for built-in command |
| 14 | + [1] hello: $ vite fmt ✓ |
| 15 | + → Cache miss: no previous cache entry found |
17 | 16 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
18 | 17 |
|
19 | 18 | > vite run hello # hit the cache |
20 | | -$ echo hello ⊘ cache disabled: built-in command |
21 | | -hello |
| 19 | +$ vite fmt ✓ cache hit, replaying |
22 | 20 |
|
23 | 21 |
|
24 | 22 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
25 | 23 | Vite+ Task Runner • Execution Summary |
26 | 24 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
27 | 25 |
|
28 | | -Statistics: 1 tasks • 0 cache hits • 0 cache misses • 1 cache disabled |
29 | | -Performance: 0% cache hit rate |
| 26 | +Statistics: 1 tasks • 1 cache hits • 0 cache misses |
| 27 | +Performance: 100% cache hit rate, <variable>ms saved in total |
30 | 28 |
|
31 | 29 | Task Details: |
32 | 30 | ──────────────────────────────────────────────── |
33 | | - [1] hello: $ echo hello ✓ |
34 | | - → Cache disabled for built-in command |
| 31 | + [1] hello: $ vite fmt ✓ |
| 32 | + → Cache hit - output replayed - <variable>ms saved |
35 | 33 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
36 | 34 |
|
37 | 35 | > vite cache clean # clean the cache |
38 | 36 | > vite run hello # cache miss after clean |
39 | | -$ echo hello ⊘ cache disabled: built-in command |
40 | | -hello |
| 37 | +$ vite fmt |
41 | 38 |
|
42 | 39 |
|
43 | 40 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
44 | 41 | Vite+ Task Runner • Execution Summary |
45 | 42 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
46 | 43 |
|
47 | | -Statistics: 1 tasks • 0 cache hits • 0 cache misses • 1 cache disabled |
| 44 | +Statistics: 1 tasks • 0 cache hits • 1 cache misses |
48 | 45 | Performance: 0% cache hit rate |
49 | 46 |
|
50 | 47 | Task Details: |
51 | 48 | ──────────────────────────────────────────────── |
52 | | - [1] hello: $ echo hello ✓ |
53 | | - → Cache disabled for built-in command |
| 49 | + [1] hello: $ vite fmt ✓ |
| 50 | + → Cache miss: no previous cache entry found |
54 | 51 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
55 | 52 |
|
56 | 53 | > cd subfolder && vite cache clean # cache can be located and cleaned from subfolder |
57 | 54 | > vite run hello # cache miss after clean |
58 | | -$ echo hello ⊘ cache disabled: built-in command |
59 | | -hello |
| 55 | +$ vite fmt |
60 | 56 |
|
61 | 57 |
|
62 | 58 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
63 | 59 | Vite+ Task Runner • Execution Summary |
64 | 60 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
65 | 61 |
|
66 | | -Statistics: 1 tasks • 0 cache hits • 0 cache misses • 1 cache disabled |
| 62 | +Statistics: 1 tasks • 0 cache hits • 1 cache misses |
67 | 63 | Performance: 0% cache hit rate |
68 | 64 |
|
69 | 65 | Task Details: |
70 | 66 | ──────────────────────────────────────────────── |
71 | | - [1] hello: $ echo hello ✓ |
72 | | - → Cache disabled for built-in command |
| 67 | + [1] hello: $ vite fmt ✓ |
| 68 | + → Cache miss: no previous cache entry found |
73 | 69 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
0 commit comments