-
Notifications
You must be signed in to change notification settings - Fork 41
/
package.json
150 lines (150 loc) · 4.95 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"name": "uhtml",
"version": "4.7.0",
"description": "A micro HTML/SVG render",
"main": "./cjs/index.js",
"types": "./types/index.d.ts",
"scripts": {
"benchmark:w3c": "node test/benchmark/linkedom.js --w3c; node test/benchmark/linkedom-cached.js --w3c; node test/benchmark/dom.js --w3c",
"benchmark:dom": "node test/benchmark/linkedom.js --dom; node test/benchmark/linkedom-cached.js --dom; node test/benchmark/dom.js --dom",
"build": "npm run rollup:es && node rollup/ssr.cjs && node rollup/init.cjs && npm run rollup:init && npm run rollup:ssr && rm -rf cjs/* && npm run cjs && npm run build:types && npm run test && npm run size",
"cjs": "ascjs --no-default esm cjs",
"rollup:es": "rollup --config rollup/es.config.js",
"rollup:init": "rollup --config rollup/init.config.js",
"rollup:ssr": "rollup --config rollup/ssr.config.js && rm esm/init-ssr.js_ && terser --module esm/init-ssr.js -mc -o ./worker.js",
"server": "npx static-handler .",
"size": "echo \"index $(cat index.js | brotli | wc -c)\";echo \"keyed $(cat keyed.js | brotli | wc -c)\";echo \"reactive $(cat reactive.js | brotli | wc -c)\";echo \"preactive $(cat preactive.js | brotli | wc -c)\";echo \"signal $(cat signal.js | brotli | wc -c)\";echo \"node $(cat node.js | brotli | wc -c)\";echo \"worker $(cat worker.js | brotli | wc -c)\";",
"test": "c8 node test/coverage.js && node test/modern.mjs && node test/svg.mjs",
"coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
"clean": "rm -rf coverage ./*.js cjs/**/*.js cjs/*.js types",
"check:types": "npx attw --pack .",
"build:types": "rm -rf types && npx tsc -p tsconfig.json && node rollup/ts.fix.js"
},
"keywords": [
"micro",
"HTML",
"render"
],
"author": "Andrea Giammarchi",
"license": "MIT",
"devDependencies": {
"@arethetypeswrong/cli": "~0.15.3",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@types/estree": "^1.0.6",
"@types/istanbul-lib-coverage": "^2.0.6",
"@types/resolve": "^1.20.6",
"ascjs": "^6.0.3",
"c8": "^10.1.2",
"fast-glob": "^3.3.2",
"rollup": "^4.27.4",
"terser": "^5.36.0",
"typescript": "^5.7.2"
},
"module": "./esm/index.js",
"type": "module",
"exports": {
".": {
"import": "./esm/index.js",
"types": {
"require": "./types/index.d.cts",
"default": "./types/index.d.mts"
},
"default": "./cjs/index.js"
},
"./dom": {
"import": "./esm/dom/index.js",
"types": {
"require": "./types/dom/index.d.cts",
"default": "./types/dom/index.d.mts"
},
"default": "./cjs/dom/index.js"
},
"./init": {
"import": "./esm/init.js",
"types": {
"require": "./types/init.d.cts",
"default": "./types/init.d.mts"
},
"default": "./cjs/init.js"
},
"./keyed": {
"import": "./esm/keyed.js",
"types": {
"require": "./types/keyed.d.cts",
"default": "./types/keyed.d.mts"
},
"default": "./cjs/keyed.js"
},
"./node": {
"import": "./esm/node.js",
"types": {
"require": "./types/node.d.cts",
"default": "./types/node.d.mts"
},
"default": "./cjs/node.js"
},
"./reactive": {
"import": "./esm/reactive.js",
"types": {
"require": "./types/reactive.d.cts",
"default": "./types/reactive.d.mts"
},
"default": "./cjs/reactive.js"
},
"./preactive": {
"import": "./esm/reactive/preact.js",
"types": {
"require": "./types/reactive/preact.d.cts",
"default": "./types/reactive/preact.d.mts"
},
"default": "./cjs/reactive/preact.js"
},
"./signal": {
"import": "./esm/reactive/signal.js",
"types": {
"require": "./types/reactive/signal.d.cts",
"default": "./types/reactive/signal.d.mts"
},
"default": "./cjs/reactive/signal.js"
},
"./ssr": {
"import": "./esm/init-ssr.js",
"types": {
"require": "./types/init-ssr.d.cts",
"default": "./types/init-ssr.d.mts"
},
"default": "./cjs/init-ssr.js"
},
"./worker": {
"import": "./worker.js",
"types": {
"require": "./types/init-ssr.d.cts",
"default": "./types/init-ssr.d.mts"
}
},
"./package.json": "./package.json"
},
"unpkg": "./keyed.js",
"dependencies": {
"@webreflection/uparser": "^0.4.0",
"custom-function": "^2.0.0",
"domconstants": "^1.1.6",
"gc-hook": "^0.4.1",
"html-escaper": "^3.0.3",
"htmlparser2": "^9.1.0",
"udomdiff": "^1.1.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/WebReflection/uhtml.git"
},
"bugs": {
"url": "https://github.com/WebReflection/uhtml/issues"
},
"homepage": "https://github.com/WebReflection/uhtml#readme",
"optionalDependencies": {
"@preact/signals-core": "^1.8.0",
"@webreflection/signal": "^2.1.2"
}
}