File tree Expand file tree Collapse file tree 6 files changed +31
-1
lines changed
Expand file tree Collapse file tree 6 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ vp run: cache hit, <variable>ms saved.
1010~/packages/hello$ vp pack ◉ cache hit, replaying
1111vp run: cache hit, <variable>ms saved.
1212
13+ > cd packages/hello && vp pack 2>&1 # direct vp pack should not be cached
14+ > cd packages/hello && vp pack 2>&1 | grep -c 'cache' || echo 'no cache' # direct vp pack has no cache
15+ 0
16+ no cache
17+
1318> echo 'export function hello() { console.log("changed"); }' > packages/hello/src/hello.ts
1419> vp run hello#build 2>&1 | grep 'cache miss' # should miss cache after source change
1520~/packages/hello$ vp pack ○ cache miss: 'packages/hello/src/hello.ts' modified, executing
Original file line number Diff line number Diff line change 77 " ls packages/hello/dist # should have the library" ,
88 " vp run hello#build 2>&1 | grep 'cache hit' # should hit cache" ,
99 " cd packages/hello && vp run build 2>&1 | grep 'cache hit' # should hit cache in sub dir" ,
10+ {
11+ "command" : " cd packages/hello && vp pack 2>&1 # direct vp pack should not be cached" ,
12+ "ignoreOutput" : true
13+ },
14+ " cd packages/hello && vp pack 2>&1 | grep -c 'cache' || echo 'no cache' # direct vp pack has no cache" ,
1015 " echo 'export function hello() { console.log(\" changed\" ); }' > packages/hello/src/hello.ts" ,
1116 " vp run hello#build 2>&1 | grep 'cache miss' # should miss cache after source change" ,
1217 {
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ vp run: cache hit, <variable>ms saved.
1111~/packages/app$ vp build ◉ cache hit, replaying
1212vp run: cache hit, <variable>ms saved.
1313
14+ > cd packages/app && vp build 2>&1 # direct vp build should not be cached
15+ > cd packages/app && vp build 2>&1 | grep -c 'cache' || echo 'no cache' # direct vp build has no cache
16+ 0
17+ no cache
18+
1419> echo '<html><body><script type="module">console.log("changed");</script></body></html>' > packages/app/index.html
1520> vp run app#build 2>&1 | grep 'cache miss' # should miss cache after source change
1621~/packages/app$ vp build ○ cache miss: 'packages/app/index.html' modified, executing
Original file line number Diff line number Diff line change 77 " ls packages/app/dist # should have the build output" ,
88 " vp run app#build 2>&1 | grep 'cache hit' # should hit cache" ,
99 " cd packages/app && vp run build 2>&1 | grep 'cache hit' # should hit cache in sub dir" ,
10+ {
11+ "command" : " cd packages/app && vp build 2>&1 # direct vp build should not be cached" ,
12+ "ignoreOutput" : true
13+ },
14+ " cd packages/app && vp build 2>&1 | grep -c 'cache' || echo 'no cache' # direct vp build has no cache" ,
1015 " echo '<html><body><script type=\" module\" >console.log(\" changed\" );</script></body></html>' > packages/app/index.html" ,
1116 " vp run app#build 2>&1 | grep 'cache miss' # should miss cache after source change" ,
1217 {
Original file line number Diff line number Diff line change 22> vp run build 2>&1 | grep 'cache hit' # should hit cache
33$ vp build ◉ cache hit, replaying
44vp run: cache hit, <variable>ms saved.
5+
6+ > vp build 2>&1 # direct vp build should not be cached
7+ > vp build 2>&1 | grep -c 'cache' || echo 'no cache' # direct vp build has no cache
8+ 0
9+ no cache
Original file line number Diff line number Diff line change 44 "command" : " vp run build # first build" ,
55 "ignoreOutput" : true
66 },
7- " vp run build 2>&1 | grep 'cache hit' # should hit cache"
7+ " vp run build 2>&1 | grep 'cache hit' # should hit cache" ,
8+ {
9+ "command" : " vp build 2>&1 # direct vp build should not be cached" ,
10+ "ignoreOutput" : true
11+ },
12+ " vp build 2>&1 | grep -c 'cache' || echo 'no cache' # direct vp build has no cache"
813 ]
914}
You can’t perform that action at this time.
0 commit comments