@node-projects/web-component-designer-htmlparserservice-lit-element 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/package.json +22 -0
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# web-component-designer-htmlparserservice-lit-element
|
|
2
|
+
|
|
3
|
+
## NPM Package
|
|
4
|
+
|
|
5
|
+
https://www.npmjs.com/package/@node-projects/web-component-designer-htmlparserservice-lit-element
|
|
6
|
+
|
|
7
|
+
npm i @node-projects/web-component-designer-htmlparserservice-lit-element
|
|
8
|
+
|
|
9
|
+
## Description
|
|
10
|
+
|
|
11
|
+
This is a HTML Parser Service for Templates inside of LitElement, it needs a HTML Parser Service as Parameter.
|
|
12
|
+
And it only can parse very simple Templates at the moment.
|
|
13
|
+
It also needed to be switched to use Typescript instead of esprima.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
import { NodeHtmlParserService } from '@node-projects/web-component-designer-htmlparserservice-nodehtmlparser';
|
|
18
|
+
import { LitElementParserService } from '@node-projects/web-component-designer-htmlparserservice-lit-element';
|
|
19
|
+
serviceContainer.register("htmlParserService", new LitElementParserService(new NodeHtmlParserService()));
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "web-component-designer addon: Parser Service for Templates inside of BaseCustomWebcomponent",
|
|
3
|
+
"name": "@node-projects/web-component-designer-htmlparserservice-lit-element",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/service/htmlParserService/LitElementParserService.js",
|
|
7
|
+
"author": "jochen.kuehner@gmx.de",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"tsc": "tsc",
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"prepublishOnly": "npm run build"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"esprima-next": "^5.8.4",
|
|
16
|
+
"@node-projects/web-component-designer": "^0.1.0"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/node-projects/web-component-designer.git"
|
|
21
|
+
}
|
|
22
|
+
}
|