forked from WebReflection/hyperHTML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
164 lines (164 loc) · 4.32 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
{
"name": "hyperhtml",
"version": "2.25.4",
"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",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"postinstall": "lightercollective",
"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 --support-ie8 --comments=/^!/ -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.2.2",
"@babel/preset-env": "^7.2.0",
"ascjs": "^3.0.0",
"basichtml": "^0.21.0",
"coveralls": "^3.0.2",
"drop-babel-typeof": "^1.0.1",
"istanbul": "^0.4.5",
"npm-dollar": "^2.1.3",
"rollup": "^1.2.2",
"rollup-plugin-babel": "^4.1.0",
"rollup-plugin-node-resolve": "^4.0.0",
"tressa": "^0.3.1",
"uglify-js": "^2.8.29"
},
"greenkeeper": {
"ignore": [
"rollup-plugin-babel",
"uglify-js"
]
},
"dependencies": {
"@ungap/create-content": "^0.1.4",
"@ungap/custom-event": "^0.2.0",
"@ungap/essential-map": "^0.1.7",
"@ungap/essential-weakset": "^0.1.2",
"@ungap/is-array": "^0.1.1",
"@ungap/template-tag-arguments": "^0.1.1",
"@ungap/weakmap": "^0.1.4",
"disconnected": "^0.1.6",
"domdiff": "^2.0.3",
"domtagger": "^0.2.3",
"hyperhtml-style": "^0.1.2",
"hyperhtml-wire": "^2.1.0",
"lightercollective": "^0.2.0"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/hyperhtml",
"logo": "logo.txt"
}
}