Strider-CD / strider

Open Source Continuous Integration & Deployment Server
http://strider-cd.github.io/
4.6k stars 432 forks source link

Cache npm install #1040

Closed felipeprov closed 7 years ago

felipeprov commented 7 years ago

First, sorry if this is not the best place to post this kind of question.

I am using strider in my enterprise, and i loved it.

I have two projects in this moment:

The project using nodejs is very small, and i can deploy in seconds.

But the project using Angular4 always take more than 10 minutes to clone the git repository, install all dependencies, run the tests, build, and deploy.

I would like to know how could i keep the node_modules folder between runs. I tried some configurations but i feel i am missing something...

Best regards

knownasilya commented 7 years ago

You need to enable the nodejs plugin, and then enable "Strict" caching in the settings for NodeJS on that branch.

screen shot 2017-09-25 at 11 42 53 am

felipeprov commented 7 years ago

It works

Thank you