BundleLitParser
to parse Lit template since polymer
template is deprecated, we recommend you to use
LitTemplate
instead. Read more details from the
Vaadin blog.@Deprecated public final class BundleParser extends Object
For internal use only. May be renamed or removed in a future release.
NpmTemplateParser
Modifier and Type | Method and Description |
---|---|
static String |
getHashFromStatistics(String fileContents)
Deprecated.
Gets the hash from the string content of a webpack stats file.
|
static String |
getSourceFromStatistics(String fileName,
elemental.json.JsonObject statistics,
VaadinService service)
Deprecated.
Get a module source from the statistics Json file generated by webpack.
|
static elemental.json.JsonObject |
parseJsonStatistics(String fileContents)
Deprecated.
Parses the content of the stats file to return a json object.
|
static org.jsoup.nodes.Element |
parseTemplateElement(String name,
elemental.json.JsonObject statisticsJson)
Deprecated.
Get the template element for given statistics file object.
|
static org.jsoup.nodes.Element |
parseTemplateElement(String fileName,
String source)
Deprecated.
Get the Polymer template element for the given polymer template source.
|
public static String getHashFromStatistics(String fileContents)
fileContents
- the content of the stats filepublic static elemental.json.JsonObject parseJsonStatistics(String fileContents)
fileContents
- the content of the stats filepublic static String getSourceFromStatistics(String fileName, elemental.json.JsonObject statistics, VaadinService service)
fileName
- name of the file to get from the jsonstatistics
- statistics json as a JsonObjectservice
- current VaadinServicepublic static org.jsoup.nodes.Element parseTemplateElement(String name, elemental.json.JsonObject statisticsJson)
name
- the file name of the templatestatisticsJson
- webpack profile json objectpublic static org.jsoup.nodes.Element parseTemplateElement(String fileName, String source)
fileName
- name of the handled filesource
- source js to get template element fromCopyright © 2022. All rights reserved.