DEV Community

Cover image for How To Speed Up Continuous Integration Build With New NPM CI And package-lock.json
Tomas Trajan πŸ‡¨πŸ‡­
Tomas Trajan πŸ‡¨πŸ‡­

Posted on β€’ Originally published at Medium

3

How To Speed Up Continuous Integration Build With New NPM CI And package-lock.json

While very controversial, the recent npm release 5.7.0 brought some amazing features which will have noticeable positive impact on your development workflow!

The new npm ci command installs from your lock-file ONLY. If your package.json and your lock-file are out of sync then it will report an error.It works by throwing away your node_modules and recreating it from scratch. Beyond guaranteeing you that you’ll only get what is in your lock-file it’s also much faster (2x-10x!) than npm install

Generate and use package-lock.json file

I have hard time guessing what ratio of developer is using package-lock.json already. It wasn’t behaving intuitively when first introduced and I suppose many people kept on deleting the file to prevent unnecessary headache.

Read more...

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay