Class NodeJsExtension
java.lang.Object
com.brunoritz.gradle.singularnode.NodeJsExtension
Allows the root project to configure the details of the tooling to be installed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.gradle.api.file.DirectoryPropertyThe directory into wich to install NodeJS and Yarn.final org.gradle.api.provider.Property<CharSequence>The URL from which to download NodeJS.final org.gradle.api.provider.Property<CharSequence>The version of NodeJS to be installed.final org.gradle.api.provider.ListProperty<CharSequence>Arguments to pass to NPM when installing packages.final org.gradle.api.provider.Property<CharSequence>The version of NPM to be installed.final org.gradle.api.provider.ListProperty<CharSequence>Arguments to pass to PNPM when installing packages.final org.gradle.api.provider.Property<CharSequence>The version of PNPM to be installed.final org.gradle.api.provider.ListProperty<CharSequence>Arguments to pass to Yarn when installing packages.final org.gradle.api.provider.Property<CharSequence>The version of Yarn to be installed. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
nodeVersion
The version of NodeJS to be installed. If not defined, NodeJS will not be installed and trying to call the NodeJS installation task will fail. -
nodeDownloadBase
The URL from which to download NodeJS. Subdirectories will be computed via an Ivy repository (and its dependency pattern).Defaults to
https://nodejs.org/dist. -
npmVersion
The version of NPM to be installed. If not defined, NPM will not be installed and trying to call the NPM installation task will fail. -
npmInstallArgs
Arguments to pass to NPM when installing packages. -
yarnVersion
The version of Yarn to be installed. If not defined, Yarn will not be installed and trying to call the Yarn installation task will fail. -
yarnInstallArgs
Arguments to pass to Yarn when installing packages. -
pnpmVersion
The version of PNPM to be installed. If not defined, PNPM will not be installed and trying to call the PNPM installation task will fail. -
pnpmInstallArgs
Arguments to pass to PNPM when installing packages. -
installBaseDir
public final org.gradle.api.file.DirectoryProperty installBaseDirThe directory into wich to install NodeJS and Yarn.Defaults to
{$rootProjectDir}/nodejs
-
-
Constructor Details
-
NodeJsExtension
@Inject public NodeJsExtension(org.gradle.api.Project project)
-