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

public class TaskUpdatePackages extends NodeUpdater

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 Details

  • 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(com.fasterxml.jackson.databind.JsonNode packageJson, com.fasterxml.jackson.databind.JsonNode platformPinnedVersions, String pkg)