Skip to content

Commit 221bd5a

Browse files
author
Robert Jackson
committed
Cache the caches to avoid some npm bizarreness when bumping packages.
This changes the Travis caching setup to cache the `.npm` and `.cache` directories, instead of caching the output of `node_modules` / `bower_components`. It should still reduce the network time, but allow the npm installs to work properly when there are package bumps. Can't make it worse ¯\_(ツ)_/¯...
1 parent 27d6784 commit 221bd5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ addons:
1010

1111
cache:
1212
directories:
13-
- node_modules
14-
- bower_components
13+
- $HOME/.npm
14+
- $HOME/.cache # includes bowers cache
1515

1616
before_install:
1717
- "npm config set spin false"

0 commit comments

Comments
 (0)