-
-
Notifications
You must be signed in to change notification settings - Fork 113
/
package.json
165 lines (165 loc) · 4.24 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "hyperhtml",
"version": "2.34.2",
"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.js",
"$ clean.esm",
"drop-babel-typeof index.js"
],
"min": [
[
"echo \"/*! (c) Andrea Giammarchi (ISC) */$(",
"uglifyjs index.js -c -m",
")\" > min.js"
]
],
"ie": [
[
"rollup --config rollup.ie.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",
"$ bundle.ie",
"$ 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": [
"istanbul cover 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": {
"@babel/core": "7.10.3",
"@babel/preset-env": "7.10.3",
"ascjs": "4.0.1",
"basichtml": "2.3.0",
"drop-babel-typeof": "1.0.3",
"istanbul": "0.4.5",
"npm-dollar": "2.2.1",
"rollup": "2.18.1",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-node-resolve": "5.2.0",
"tressa": "0.3.1",
"uglify-js": "3.10.0"
},
"greenkeeper": {
"ignore": [
"uglify-js",
"rollup",
"rollup-plugin-babel",
"rollup-plugin-node-resolve"
]
},
"dependencies": {
"@ungap/create-content": "0.2.0",
"@ungap/custom-event": "0.3.1",
"@ungap/essential-map": "0.3.2",
"@ungap/essential-weakset": "0.2.1",
"@ungap/is-array": "0.2.0",
"@ungap/template-tag-arguments": "0.5.0",
"@ungap/weakmap": "0.2.1",
"disconnected": "0.2.1",
"domdiff": "2.2.2",
"domtagger": "0.7.0",
"hyperhtml-style": "0.1.2",
"hyperhtml-wire": "2.1.1"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/hyperhtml"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/hyperhtml"
}
}