jkcfg / jk

Configuration as Code with ECMAScript
https://jkcfg.github.io
Apache License 2.0
406 stars 30 forks source link

Ask TravisCI to cache the npm modules #321

Closed squaremo closed 4 years ago

squaremo commented 4 years ago

This commit adds directives to the TravicCI config so that it will cache npm packages (kept in $HOME/.npm when using npm ci).

The directory so cached is mounted into the build container, so that if the host has cached .npm packages, so will the container.