Class TaskGenerateTsConfig
java.lang.Object
com.vaadin.flow.server.frontend.AbstractFileGeneratorFallibleCommand
io.jmix.flowui.devserver.frontend.AbstractTaskClientGenerator
io.jmix.flowui.devserver.frontend.TaskGenerateTsConfig
- All Implemented Interfaces:
com.vaadin.flow.server.frontend.FallibleCommand
Generate
tsconfig.json
if it is missing in project folder.-
Field Summary
Modifier and TypeFieldDescriptionprotected static boolean
Keeps track of whether a warning update has already been logged. -
Method Summary
Methods inherited from class com.vaadin.flow.server.frontend.AbstractFileGeneratorFallibleCommand
setGeneratedFileSupport, track, track, writeIfChanged, writeIfChanged
-
Field Details
-
warningEmitted
protected static boolean warningEmittedKeeps track of whether a warning update has already been logged. This is used to avoid spamming the log with the same message.
-
-
Method Details
-
getFileContent
Description copied from class:AbstractTaskClientGenerator
Get file content for writing to the generated file.- Specified by:
getFileContent
in classAbstractTaskClientGenerator
- Returns:
- content of the file.
- Throws:
IOException
- if IO error happens while reading file content.
-
execute
public void execute() throws com.vaadin.flow.server.ExecutionFailedException- Specified by:
execute
in interfacecom.vaadin.flow.server.frontend.FallibleCommand
- Overrides:
execute
in classAbstractTaskClientGenerator
- Throws:
com.vaadin.flow.server.ExecutionFailedException
-
getGeneratedFile
Description copied from class:AbstractTaskClientGenerator
Get the generated file where content will be written.- Specified by:
getGeneratedFile
in classAbstractTaskClientGenerator
- Returns:
- the generated file.
-
shouldGenerate
protected boolean shouldGenerate()Description copied from class:AbstractTaskClientGenerator
Check if it should generate the file or not.- Specified by:
shouldGenerate
in classAbstractTaskClientGenerator
- Returns:
- true if it should generate, false otherwise.
-