Installs the packages as described by a package.json file
| Type | Name and description |
|---|---|
java.lang.Iterable<java.lang.String> |
additionalInstallArgs |
boolean |
productionOnlySet to true if only production dependencies should be installed. |
| Constructor and description |
|---|
NpmPackageJsonInstall
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
additionalInstallArgs(java.lang.String... args)Adds more installation arguments |
|
void |
additionalInstallArgs(java.lang.Iterable<java.lang.String> args)Adds more installation arguments |
|
void |
exec() |
|
java.lang.Iterable<java.lang.String> |
getAdditionalInstallArgs()Customise installation via additional argument that are passed to npm install. |
|
java.io.File |
getPackageJsonFile()The package.json file that this task will query. |
|
org.gradle.api.provider.Provider<java.io.File> |
getPackageJsonFileProvider()The package.json file that this task will query. |
|
java.io.File |
getPackageLockFile()The executable-lock.json file that this task will create. |
|
org.gradle.api.provider.Provider<java.io.File> |
getPackageLockFileProvider()The executable-lock.json file that this task will create. |
|
void |
setAdditionalInstallArgs(java.lang.Iterable<java.lang.String> args)Replace list of arguments with a new list. |
| Methods inherited from class | Name |
|---|---|
class AbstractNodeBaseTask |
createExecSpec, environment, getEnvironment, getNodeExtension, getNpmExecutor, getNpmExtension, getProjectOperations, runExecSpec, setEnvironment |
Set to true if only production dependencies should be installed.
Adds more installation arguments
args - One or more argumentsAdds more installation arguments
args - Iterable list of arguments Customise installation via additional argument that are passed to npm install.
The package.json file that this task will query.
The package.json file that this task will query.
The executable-lock.json file that this task will create.
The executable-lock.json file that this task will create.
Replace list of arguments with a new list.
args - new arguments to use.Groovy Documentation