@groovy.transform.CompileStatic @groovy.util.logging.Slf4j class NpmExtension extends BaseNpmExtension<NodeJSExtension, NpmExtension> implements NpmExtensionMethods, org.ysb33r.grolifant5.api.core.runnable.ProvisionedExecMethods<NpmExecSpec>
Set up global config or task-based config for NPM.
| Constructor and description |
|---|
NpmExtension
(Project project)Adds the extension to the project. |
NpmExtension
(Project project, NodeJSExtension nodejs)Adds the extension to the project. |
NpmExtension
(Task task)Adds the extension to a NpmTask task. |
NpmExtension
(Task task, NodeJSExtension nodejs, NpmExtension altNpmExt)Adds the extension to a NpmTask task. |
protected NpmExtension
(Task task, String projectExtName)Constructs a new extension which is attached to the provided task. |
protected NpmExtension
(Task task, Class<? super NpmExtension> extClass)Constructs a new extension which is attached to the provided task. |
Adds the extension to the project.
project - Project to link to.Adds the extension to the project.
project - Project to link to.nodejs - Alternative NodeJS extension to use.Adds the extension to a NpmTask task.
Links the executable resolving to the global instance, but allows it to be overridden on a per-task basis.
task - Task to be extended.Adds the extension to a NpmTask task.
Links the executable resolving to the global instance, but allows it to be overridden on a per-task basis.
task - Task to be extended.nodejs - Alternative NodeJS extension to use as project extension.altNpmExt - Alternative Npm extension to use as project extension.Constructs a new extension which is attached to the provided task. This is meant for other plugins that want to provide their own NpmExtension implementation
project - Project this extension is associated with.projectExtName - Name of the extension that is attached to the project.Constructs a new extension which is attached to the provided task. This is meant for other plugins that want to provide their own NpmExtension implementation
Task - Task this extension is associated with.extClass - Type of the extension that is attached to the project.