npm ci is a special command for installing node packages in a continuous integration environment. In this video I show Github Actions with npm ci in a JavaScript project, after showing npm i for the same code. I also talk about some of the differences of the command, and show some benchmarks as a project scales and adds more packages so you can know how useful it is in the real world.
~~~~~~
RESOURCES
Playlist:
• Continuous Integration...
Repository:
github.com/Jimmydalecleveland...
npm ci Documentation:
docs.npmjs.com/cli/v7/command...
~~~~~~
00:00 - Intro and tip for re-running jobs
01:53 - Time for npm install to complete
03:36 - Adding npm ci and comparing
05:44 - npm ci definition and documentation
07:23 - Scaling Benchmarks of npm i vs npm ci
14:24 - Wrap-up
~~~~~~
Follow Jimmy Cleveland's doings:
twitter: / jimmydcleveland
blog: blog.jimmydc.com/
#ci #javascript #github
Негізгі бет CI #3 - Speed Up Jobs with npm ci
Пікірлер: 3