-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
46 lines (46 loc) · 1.87 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
{
"name": "html-parsed-element",
"version": "0.4.1",
"description": "A base custom element class with a reliable `parsedCallback` method",
"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 lcov && npm run size",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"cjs": "cp index.js cjs && echo 'module.exports = HTMLParsedElement;' >> cjs/index.js",
"esm": "cp index.js esm && echo 'export default HTMLParsedElement;' >> esm/index.js",
"instrument": "istanbul instrument ./index.js -o ./test/html-parsed-element.js",
"lcov": "istanbul report --include=test/coverage.json lcov",
"min": "uglifyjs index.js --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 && rm -f min.js.br",
"test": "npm run server & (sleep 1 && npm run nightmare && npm run report && npm run kill)",
"nightmare": "node test || (npm run kill && exit 1)",
"report": "istanbul report --include=test/coverage.json text-summary",
"server": "node -e 'require(`fs`).writeFileSync(`pid`,require(`child_process`).spawn(`http-server`,[`test`,`-s`]).pid.toString());'",
"kill": "kill -9 $(cat pid) && rm -f pid"
},
"repository": {
"type": "git",
"url": "git+https://github.com/WebReflection/html-parsed-element.git"
},
"keywords": [
"web",
"components",
"custom",
"elements"
],
"author": "Andrea Giammarchi",
"license": "ISC",
"bugs": {
"url": "https://github.com/WebReflection/html-parsed-element/issues"
},
"homepage": "https://github.com/WebReflection/html-parsed-element#readme",
"devDependencies": {
"coveralls": "^3.0.2",
"http-server": "^0.11.1",
"istanbul": "^0.4.5",
"nightmare": "^3.0.1",
"uglify-es": "^3.3.9"
}
}