Class NodeUpdater
java.lang.Object
io.jmix.flowui.devserver.frontend.NodeUpdater
- All Implemented Interfaces:
com.vaadin.flow.server.frontend.FallibleCommand
- Direct Known Subclasses:
TaskCopyRequiredFiles
,TaskGeneratePackageJson
,TaskUpdateImports
,TaskUpdatePackages
public abstract class NodeUpdater
extends Object
implements com.vaadin.flow.server.frontend.FallibleCommand
Base abstract class for frontend updaters that needs to be run when in
dev-mode or from the flow maven plugin.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
NodeUpdater
(com.vaadin.flow.server.frontend.scanner.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
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
protected final com.vaadin.flow.server.frontend.scanner.FrontendDependenciesScanner frontDepsTheFrontendDependencies
object representing the application dependencies. -
options
-
-
Constructor Details
-
NodeUpdater
protected NodeUpdater(com.vaadin.flow.server.frontend.scanner.FrontendDependenciesScanner frontendDependencies, Options options) Constructor.- Parameters:
frontendDependencies
- a reusable frontend dependenciesoptions
- the task options
-
-
Method Details
-
getProjectJsonFile
-
getStudioJsonFile
-
getProjectPackageLockFile
-
getStudioPackageLockFile
-
generateVersionsJson
Generate versions json file for version locking.- Parameters:
packageJson
- the package json content- Throws:
IOException
- when file IO fails
-