forked from WebReflection/hyperHTML-Element
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
115 lines (115 loc) · 2.89 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
{
"name": "hyperhtml-element",
"version": "3.15.1",
"description": "An extensible class to define hyperHTML based Custom Elements",
"unpkg": "min.js",
"module": "esm/index.js",
"main": "cjs/index.js",
"types": "index.d.ts",
"scripts": {
"$": "npm-dollar",
"build": "npm-dollar build",
"bundle": "npm-dollar bundle",
"min": "npm-dollar min",
"test": "npm-dollar test.default",
"coverage": "mkdir -p ./coverage; nyc report --reporter=text-lcov > ./coverage/lcov.info"
},
"$": {
"build": [
"$ bundle",
"$ test.babel",
"$ minify",
"$ size",
"$ test"
],
"bundle": {
"cjs": [
"ascjs ./esm ./cjs"
],
"esm": [
"rollup --config esm.config.js",
"$ fix.esm"
],
"es5": [
"rollup --config es5.config.js",
"$ fix.es5"
]
},
"fix": {
"esm": [
"sed -i.bak 's/return exports;/return exports.default;/' index.js",
"rm -f index.js.bak"
],
"es5": [
"sed -i.bak 's/return exports;/return exports[\"default\"];/' es5.js",
"rm -f es5.js.bak"
]
},
"minify": {
"es6": "echo '/*! (c) Andrea Giammarchi - ISC */' > min.js && uglifyjs index.js --compress --mangle >> min.js",
"es5": "echo '/*! (c) Andrea Giammarchi - ISC */' > es5.min.js && uglifyjs es5.js --compress --mangle >> es5.min.js"
},
"size": {
"esm": [
[
"echo -e '\\x1b[1mSize for ES2015\\x1b[0m'; cat index.js |",
"wc -c;cat min.js |",
"wc -c;gzip -c min.js |",
"wc -c"
]
],
"es5": [
[
"echo -e '\\x1b[1mSize for ES5\\x1b[0m'; cat es5.js |",
"wc -c;cat es5.min.js |",
"wc -c;gzip -c es5.min.js |",
"wc -c"
]
]
},
"test": {
"babel": "babel --presets @babel/preset-env test/test.js > test/test.es5.js",
"default": "nyc node test.js"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/WebReflection/hyperHTML-Element.git"
},
"keywords": [
"hyperHTML",
"custom",
"elements",
"class"
],
"author": "Andrea Giammarchi",
"license": "ISC",
"bugs": {
"url": "https://github.com/WebReflection/hyperHTML-Element/issues"
},
"homepage": "https://github.com/WebReflection/hyperHTML-Element#readme",
"greenkeeper": {
"ignore": [
"rollup",
"rollup-plugin-babel",
"rollup-plugin-node-resolve"
]
},
"devDependencies": {
"@babel/cli": "^7.15.4",
"@babel/core": "^7.15.5",
"@babel/preset-env": "^7.15.6",
"ascjs": "^5.0.1",
"linkedom": "^0.11.2",
"npm-dollar": "^2.2.1",
"nyc": "^15.1.0",
"rollup": "^2.56.3",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"tressa": "^0.3.1",
"uglify-es": "^3.3.9"
},
"dependencies": {
"hyperhtml": "^2.34.0"
}
}