Package com.vaadin.flow.polymer2lit
Class FrontendConverter
java.lang.Object
com.vaadin.flow.polymer2lit.FrontendConverter
- All Implemented Interfaces:
AutoCloseable
A converter that converts Polymer-based
*.js source files to Lit.
Effectively, this is a wrapper around the convert.ts script.-
Constructor Summary
ConstructorsConstructorDescriptionFrontendConverter(com.vaadin.flow.server.frontend.FrontendTools frontendTools) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanconvertFile(Path filePath, boolean useLit1, boolean disableOptionalChaining)
-
Constructor Details
-
FrontendConverter
public FrontendConverter(com.vaadin.flow.server.frontend.FrontendTools frontendTools) throws IOException - Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
convertFile
public boolean convertFile(Path filePath, boolean useLit1, boolean disableOptionalChaining) throws IOException, InterruptedException, com.vaadin.flow.server.frontend.FrontendUtils.CommandExecutionException - Throws:
IOExceptionInterruptedExceptioncom.vaadin.flow.server.frontend.FrontendUtils.CommandExecutionException
-