I am building(mvn) my project using Jenkins. Jenkins configured to run npm install
and bower install
. So each and every time when I build my project, the npm install
will run, so the build time is more every time. So I thought to run npm install
only if there is any changes, like new package is added, version changes or anything got removed etc., in package.json.
I googled a lot to find out a way to achieve this, but failed.
Is there any plugins which I can use to achieve this?
Can anyone help me to find out a way to do this?
Thanks in advance.
I had the same problem as you and wrote npm-install-changed
.
Install with npm install -g npm-install-changed
, and run npm-install-changed instead of the usual npm install
.
Let me know if it works for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With