Package com.vaadin.flow.server.frontend
Class NodeUpdater
java.lang.Object
com.vaadin.flow.server.frontend.NodeUpdater
- All Implemented Interfaces:
FallibleCommand
- Direct Known Subclasses:
TaskGeneratePackageJson
,TaskUpdateImports
,TaskUpdatePackages
Base abstract class for frontend updaters that needs to be run when in
dev-mode or from the flow maven plugin.
For internal use only. May be renamed or removed in a future release.
- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
Deprecated.protected static final String
Deprecated.protected final FrontendDependenciesScanner
TheFrontendDependencies
object representing the application dependencies.protected Options
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NodeUpdater
(FrontendDependenciesScanner frontendDependencies, Options options) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
generateVersionsJson
(elemental.json.JsonObject packageJson) Generate versions json file for version locking.protected File
protected File
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.server.frontend.FallibleCommand
execute, setGeneratedFileSupport
-
Field Details
-
DEP_NAME_FLOW_DEPS
Deprecated.- See Also:
-
DEP_NAME_FLOW_JARS
Deprecated.- See Also:
-
frontDeps
TheFrontendDependencies
object representing the application dependencies. -
options
-
-
Constructor Details
-
NodeUpdater
Constructor.- Parameters:
frontendDependencies
- a reusable frontend dependenciesoptions
- the task options
-
-
Method Details
-
getPackageJsonFile
-
getPackageLockFile
-
generateVersionsJson
Generate versions json file for version locking.- Parameters:
packageJson
- the package json content- Throws:
IOException
- when file IO fails
-