Sunday 19 November 2017

Test npm dependencies in your automation scripts

I wrote earlier about CLI tool for checking npm dependencies and /u/cooliobing suggested to introduce CI mode.I think it'a cool idea because in real life nobody cares until build is not failing 😉Now you can add config to your package.json:"config": { "maxPackagesNumber": 100, "maxSizeBites": 840400, "allowedLicenseTypes": [ "permissive", "publicDomain", "uncategorized" ] } and then call in your build scriptnpm-consider install --test and command will exit with code=1 of limits are not satisfied.Now you know when someone added a creepy dependency to your project! Check docs if you are interested!

Submitted November 19, 2017 at 08:22AM by delfrrr

No comments:

Post a Comment