forked from WebReflection/hyperHTML-Element
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
115 lines (115 loc) · 2.94 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.1.0",
"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",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"test": "npm-dollar test.default"
},
"$": {
"build": [
"$ bundle",
"$ test.babel",
"$ minify",
"$ size",
"$ test"
],
"bundle": {
"cjs": [
"ascjs ./esm ./cjs",
"sed -i.bak 's/hyperhtml\\/esm/hyperhtml\\/cjs/' cjs/index.js",
"rm -f cjs/index.js.bak"
],
"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": "uglifyjs index.js --comments=/^!/ --compress --mangle -o min.js",
"es5": "uglifyjs es5.js --comments=/^!/ --compress --mangle -o es5.min.js"
},
"size": {
"esm": [
[
"echo $(tput bold)'Size for ES2015'$(tput sgr0); cat index.js |",
"wc -c;cat min.js |",
"wc -c;gzip -c min.js |",
"wc -c"
]
],
"es5": [
[
"echo $(tput bold)'Size for ES5'$(tput sgr0); cat es5.js |",
"wc -c;cat es5.min.js |",
"wc -c;gzip -c es5.min.js |",
"wc -c"
]
]
},
"test": {
"babel": "babel test/test.js > test/test.es5.js",
"default": "istanbul cover 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",
"devDependencies": {
"ascjs": "^2.4.0",
"babel-cli": "^6.26.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-builtin-classes": "^0.6.1",
"babel-preset-es2015": "^6.24.1",
"babelrc-rollup": "^3.0.0",
"basichtml": "^0.16.0",
"coveralls": "^3.0.1",
"istanbul": "^0.4.5",
"npm-dollar": "^0.1.3",
"rollup": "^0.59.4",
"rollup-plugin-alias": "^1.4.0",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-cdn": "^0.1.2",
"rollup-plugin-node-resolve": "^3.3.0",
"tressa": "^0.3.1",
"uglify-es": "^3.3.9"
},
"dependencies": {
"hyperhtml": "^2.14.0"
}
}