Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add npm prune to Travis CI #1663

Merged
merged 1 commit into from
Jun 15, 2016
Merged

Add npm prune to Travis CI #1663

merged 1 commit into from
Jun 15, 2016

Conversation

ntwb
Copy link
Contributor

@ntwb ntwb commented Jun 8, 2016

Via https://docs.npmjs.com/cli/prune

This command removes "extraneous" packages. If a package name is provided, then only packages matching one of the supplied names are removed.

Extraneous packages are packages that are not listed on the parent package's dependencies list.

The reason for adding this is to go hand in hand with the Travis CI caching implemented a while ago, if you don't run npm prune periodically then older packages will not be removed from the cache and the cache will continue to grow in size.

I suspect if you compare the Travis CI cache size between master and this PR, this PR will be significantly smaller. (You could also inspect the cache with Travis CI CLI I think)

https://travis-ci.org/roots/sage/caches

> Via https://docs.npmjs.com/cli/prune
> > This command removes "extraneous" packages. If a package name is provided, then only packages matching one of the supplied names are removed.
> >
> > Extraneous packages are packages that are not listed on the parent package's dependencies list.

The reason for adding this is to go hand in hand with the Travis CI caching implemented a while ago, if you don't run `npm prune` periodically then older packages will not be removed from the cache and the cache will continue to grow in size.

I suspect if you compare the Travis CI cache size between master and this PR, this PR will be significantly smaller. (You could also inspect the cache with Travis CI CLI I think)

https://travis-ci.org/roots/sage/caches
@retlehs retlehs merged commit b116325 into roots:sage-9 Jun 15, 2016
@ntwb ntwb deleted the patch-2 branch June 16, 2016 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants