srs / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. :rocket:
Apache License 2.0
867 stars 210 forks source link

How to use npm ci instead of npm install? #362

Open EugenCepoi opened 4 years ago

EugenCepoi commented 4 years ago

Using npm install during a CI build is causing in my case several problems as it modifies the package-lock.json file. Running npm ci avoids that. How can I configure the gradle plugin to use npm ci instead of npm install?

deepy commented 4 years ago

This is one of the major features we've got in the fork node-gradle/gradle-node-plugin/blob/master/docs/faq.md#how-do-i-use-npm-ci-instead-of-npm-install

EugenCepoi commented 4 years ago

Thanks, this is useful! Started using your fork.

matthiaskraaz commented 8 months ago

The above "fork" is what you get with the ID "com.github.node-gradle.node" from the gradle plugin repository.