Package com.vaadin.flow.server.frontend
Class TaskUpdatePackages
java.lang.Object
com.vaadin.flow.server.frontend.NodeUpdater
com.vaadin.flow.server.frontend.TaskUpdatePackages
- All Implemented Interfaces:
FallibleCommand
Updates
package.json
by visiting NpmPackage
annotations
found in the classpath. It also visits classes annotated with
NpmPackage
.
For internal use only. May be renamed or removed in a future release.
- Since:
- 2.0
-
Field Summary
FieldsFields inherited from class com.vaadin.flow.server.frontend.NodeUpdater
DEP_NAME_FLOW_DEPS, DEP_NAME_FLOW_JARS, frontDeps, options
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Runs the given command.protected static boolean
pinPlatformDependency
(elemental.json.JsonObject packageJson, elemental.json.JsonObject platformPinnedVersions, String pkg) Methods inherited from class com.vaadin.flow.server.frontend.NodeUpdater
generateVersionsJson, getPackageJsonFile, getPackageLockFile
-
Field Details
-
VAADIN_APP_PACKAGE_HASH
- See Also:
-
-
Method Details
-
execute
public void execute()Description copied from interface:FallibleCommand
Runs the given command.If execution fails then the command may throw an exception which may give a message and a cause of the failure.
-
pinPlatformDependency
protected static boolean pinPlatformDependency(elemental.json.JsonObject packageJson, elemental.json.JsonObject platformPinnedVersions, String pkg)
-