-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
43 lines (43 loc) · 1.38 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
{
"name": "@ungap/event",
"version": "0.2.2",
"description": "An Event polyfill for legacy browsers.",
"main": "./cjs/index.js",
"module": "./esm/index.js",
"unpkg": "min.js",
"scripts": {
"build": "npm run cjs && npm run esm && npm run min && npm run test && npm run size",
"cjs": "cat index.js | sed 's/var self.*/var self = {};/' > cjs/index.js && echo 'module.exports = self.Event;' >> cjs/index.js",
"esm": "cat index.js | sed 's/var self.*/var self = {};/' > esm/index.js && echo 'export default self.Event;' >> esm/index.js",
"min": "uglifyjs index.js --support-ie8 --comments=/^!/ -c -m -o min.js",
"size": "cat index.js | wc -c && cat min.js | wc -c && gzip -c9 min.js | wc -c && cat min.js | brotli | wc -c",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"test": "nyc node test/index.js"
},
"keywords": [
"Event",
"polyfill",
"legacy",
"ungap"
],
"author": "Andrea Giammarchi",
"license": "ISC",
"devDependencies": {
"coveralls": "^3.1.0",
"nyc": "^15.1.0",
"uglify-js": "^3.9.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ungap/event.git"
},
"bugs": {
"url": "https://github.com/ungap/event/issues"
},
"homepage": "https://github.com/ungap/event#readme",
"type": "module",
"exports": {
"import": "./esm/index.js",
"default": "./cjs/index.js"
}
}