@slyte/html-parser 2.0.0 → 2.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 +13 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,6 +5,12 @@ HTML / Mustache template parser for Lyte. Converts markup to a JS DOM-like tree
|
|
|
5
5
|
**Requirements:** Node.js `>=18`
|
|
6
6
|
**License:** Apache-2.0
|
|
7
7
|
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @slyte/html-parser
|
|
12
|
+
```
|
|
13
|
+
|
|
8
14
|
## Table of Contents <!-- omit in toc -->
|
|
9
15
|
|
|
10
16
|
- [Usage](#usage)
|
|
@@ -98,6 +104,11 @@ Published package contents are controlled by the `files` allow-list in `package.
|
|
|
98
104
|
- Package export: `@slyte/html-parser/esm` → root `index.js`
|
|
99
105
|
- Per-file ESM build output: `dist/esm/`
|
|
100
106
|
|
|
101
|
-
##
|
|
107
|
+
## Build
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
npm run bundle # production + development webpack builds
|
|
111
|
+
npm run dev # watch mode
|
|
112
|
+
```
|
|
102
113
|
|
|
103
|
-
|
|
114
|
+
`prepack` runs `bundle` automatically before publish.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slyte/html-parser",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Parser to replace headless chromium",
|
|
5
5
|
"main": "dist/html-parser.js",
|
|
6
6
|
"exports": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"deprecated": false,
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"copy-webpack-plugin": "
|
|
25
|
-
"webpack": "
|
|
26
|
-
"webpack-cli": "
|
|
24
|
+
"copy-webpack-plugin": "14.0.0",
|
|
25
|
+
"webpack": "5.11.1",
|
|
26
|
+
"webpack-cli": "4.3.1",
|
|
27
27
|
"webpack-merge": "5.7.3"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|