This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
49 lines (49 loc) · 1.66 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
{
"name": "@ungap/custom-elements-builtin",
"version": "0.6.5",
"description": "A polyfill for Custom Elements builtin extends",
"main": "./cjs/index.js",
"module": "./esm/index.js",
"unpkg": "min.js",
"scripts": {
"babel": "babel --presets=@babel/preset-env test/my-button.js > test/es5/my-button.js",
"build": "npm run cjs && npm run esm && npm run min && npm run test && npm run size",
"cjs": "cp index.js cjs/",
"esm": "cp index.js esm/",
"min": "uglifyjs index.js -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",
"test": "npm run server & (sleep 1 && npm run nightmare && npm run kill)",
"nightmare": "node test/nightmare.js || (npm run kill && exit 1)",
"server": "node -e 'require(`fs`).writeFileSync(`pid`,require(`child_process`).spawn(`http-server`,[`.`,`-s`]).pid.toString());'",
"kill": "kill -9 $(cat pid) && rm -f pid"
},
"keywords": [
"customElements",
"builtin",
"polyfill",
"ungap"
],
"author": "Andrea Giammarchi",
"license": "ISC",
"devDependencies": {
"@babel/cli": "^7.13.16",
"@babel/core": "^7.14.0",
"@babel/preset-env": "^7.14.1",
"http-server": "^0.12.3",
"nightmare": "^3.0.2",
"uglify-js": "^3.13.5"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ungap/custom-elements-builtin.git"
},
"bugs": {
"url": "https://github.com/ungap/custom-elements-builtin/issues"
},
"homepage": "https://github.com/ungap/custom-elements-builtin#readme",
"type": "module",
"exports": {
"import": "./esm/index.js",
"default": "./cjs/index.js"
}
}