@groovy.transform.CompileStatic class NodeJSDependencyFactory extends Object
A factory class for creating NPM self resolving dependencies in a Gradle context.
| Constructor and description |
|---|
NodeJSDependencyFactory
(org.ysb33r.grolifant.api.core.ProjectOperations po, AsciidoctorJSNodeExtension nodejs, AsciidoctorJSNpmExtension npm)Instantiates a factory for a specific context. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
SelfResolvingDependency |
createDependency(PackageDescriptor pkg, String version)Create a NPM-based self-resolving dependency. |
|
SelfResolvingDependency |
createDependency(PackageDescriptor pkg, String version, Set<File> withPaths)Create a NPM-based self-resolving dependency. |
|
SelfResolvingDependency |
createDependency(String name, String version, String scope, Set<File> withPaths)Create a NPM-based self-resolving dependency. |
Instantiates a factory for a specific context.
po - The Gradle project for which is is done.nodejs - The NodeJS extension which is being used for this operation.npm - The NPM extension that is being used for this operation.Create a NPM-based self-resolving dependency.
pkg - Description of the NPM packageversion - Version (tag) of the NPM package.Create a NPM-based self-resolving dependency. This version allows for additional system search paths to be added in case the package will require it during the installation process.
pkg - Description of the NPM packageversion - Version (tag) of the NPM package.withPaths - A set paths to be added to the system search path.Create a NPM-based self-resolving dependency.
name - Name of NPM package.version - Version (tag) of NPM package.scope - Scope of NPM package.withPaths - A set of paths to be added to the system search path.Copyright © 2013-2024 the original author or authors. All rights reserved.