Skip to content

Commit ea1212a

Browse files
authored
Explicitly cache our node_modules in each package
This will massively speed up the install process, which should reduce build times for the next build following this one by ~2/3. Unfortunately, globing isn't allowed, so you'll have to manually add any new packages here. Also, the top level node_modules isn't needed, as that's done automatically by Travis. And I changed out the "stable" version for "node", as per Travis's docs.
1 parent d9727d3 commit ea1212a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- stable
4+
- "node"
55
before_install:
66
- npm i -g npm
77
before_script:
88
- npm run build
99
cache:
1010
directories:
11-
- node_modules
11+
- packages/react-router/node_modules
12+
- packages/react-router-dom/node_modules
13+
- packages/react-router-native/node_modules
14+
- packages/react-router-config/node_modules
15+
- packages/react-router-redux/node_modules
16+
- packages/react-router-website/node_modules
1217
branches:
1318
only:
1419
- master

0 commit comments

Comments
 (0)