Class JSPackageDependency
java.lang.Object
com.liferay.frontend.js.loader.modules.extender.npm.JSPackageDependency
Represents an NPM package dependency (i.e., another NPM package).
-
Constructor Summary
ConstructorsConstructorDescriptionJSPackageDependency(JSPackage jsPackage, String packageName, String versionConstraints) Constructs aJSPackageDependencywith the JS package, package name, and version constraints. -
Method Summary
Modifier and TypeMethodDescriptionReturns the NPM package declaring the dependency.Returns the dependency's package name.Returns the NPM semantic version expression defining the suitable versions for the dependency.
-
Constructor Details
-
JSPackageDependency
Constructs aJSPackageDependencywith the JS package, package name, and version constraints.- Parameters:
jsPackage- the package declaring the dependencypackageName- the dependency's package nameversionConstraints- the NPM semantic version expression defining the suitable versions for the dependency
-
-
Method Details
-
getJSPackage
Returns the NPM package declaring the dependency.- Returns:
- the NPM package
-
getPackageName
Returns the dependency's package name.- Returns:
- the dependency's package name
-
getVersionConstraints
Returns the NPM semantic version expression defining the suitable versions for the dependency.- Returns:
- the NPM semantic version expression
-