forked from WebReflection/hyperHTML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
146 lines (146 loc) · 3.69 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
{
"name": "hyperhtml",
"version": "3.0.0",
"description": "A Fast & Light Virtual DOM Alternative",
"homepage": "https://viperhtml.js.org/hyper.html",
"unpkg": "min.js",
"main": "cjs/index.js",
"module": "esm/index.js",
"types": "index.d.ts",
"scripts": {
"$": "npm-dollar",
"build": "npm run $ build",
"bundle": "npm run $ bundle",
"test": "npm run $ test"
},
"$": {
"bundle": {
"max": [
"rollup --config rollup.config.mjs",
"$ clean.esm"
],
"min": [
[
"echo \"/*! (c) Andrea Giammarchi (ISC) */$(",
"uglifyjs index.js -c -m",
")\" > min.js"
]
],
"umd": [
[
"echo \"(function(A,G){if(typeof define=='function'&&define.amd)define([],G);else",
"if(typeof module=='object'&&module.exports)module.exports=G();else",
"A.hyperHTML=G()}(typeof self!='undefined'?self:this,function(){\">umd.js;cat",
"min.js>>umd.js;echo \"return hyperHTML}));\">>umd.js"
]
],
"esm": [
"cp min.js esm.js",
"echo 'export default hyperHTML;' >> esm.js",
"echo 'export const {Component, bind, define, diff, hyper, wire} = hyperHTML;' >> esm.js"
]
},
"build": [
"$ cjs",
"$ clean.cjs index.js",
"$ clean.cjs classes/Component.js",
"$ clean.cjs hyper/render.js",
"$ clean.cjs objects/Updates.js",
"$ clean.cjs shared/utils.js",
"$ clean.cjs hyper/wire.js",
"$ bundle.max",
"$ bundle.min",
"$ bundle.umd",
"$ bundle.esm",
"$ test",
"$ size"
],
"clean": {
"cjs": "sed -i.bck 's/m.default : m/\\/* istanbul ignore next *\\/ m.default : \\/* istanbul ignore next *\\/ m/g' cjs/$1 && rm -f cjs/$1.bck",
"esm": [
[
"cat index.js |",
"sed 's/(exports)/(document)/' |",
"sed 's/return exports;/return hyper;/' |",
"sed -e 's/exports.*;//g' |",
"sed '/var createContent$1 =/,/(document));/d' |",
"sed 's/createContent$1/createContent/' |",
"sed 's/({})/(document)/' |",
"sed -e 's/var isNoOp =.*/var isNoOp = false;/' > index.clean"
],
"mv index.clean index.js"
]
},
"cjs": [
"ascjs ./esm ./cjs"
],
"size": {
"gzip": [
[
"cat index.js |",
"wc -c;cat min.js |",
"wc -c;gzip -c9 min.js |",
"wc -c"
]
],
"brotli": "cat min.js | brotli | wc -c"
},
"test": [
"nyc node test/runner.js"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/WebReflection/hyperhtml.git"
},
"keywords": [
"dom",
"diff",
"performance",
"template",
"literals",
"lightweight",
"fast",
"react",
"virtual",
"lit-html",
"alternative"
],
"author": "Andrea Giammarchi",
"license": "ISC",
"bugs": {
"url": "https://github.com/WebReflection/hyperhtml/issues"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "15.1.0",
"ascjs": "6.0.2",
"basichtml": "2.4.9",
"npm-dollar": "2.2.1",
"nyc": "15.1.0",
"rollup": "3.27.1",
"tressa": "0.3.1",
"uglify-js": "3.17.4"
},
"greenkeeper": {
"ignore": [
"uglify-js",
"rollup"
]
},
"dependencies": {
"@ungap/template-tag-arguments": "0.5.0",
"disconnected": "0.2.1",
"domdiff": "2.2.2",
"domtagger": "0.7.2",
"hyperhtml-style": "0.1.3",
"hyperhtml-wire": "2.1.1"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/hyperhtml"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/hyperhtml"
}
}