-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
72 lines (72 loc) · 2.92 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
{
"name": "uce-template",
"version": "0.7.1",
"description": "A tiny toolless library with tools included",
"bin": {
"uce-template": "bin/index.js"
},
"main": "./cjs/index.js",
"scripts": {
"uce": "node -e 'require(`fs`).writeFileSync(`esm/uce.js`,require(`fs`).readFileSync(`node_modules/uce/esm/index.js`).toString().replace(/NOPE\\/\\/ \\[props\\][\\S\\s]+?\\/\\/ \\[\\/props\\]/, ``))'",
"build": "npm run graph && npm run cjs && npm run rollup:es && npm run rollup:babel && drop-babel-typeof index.js && npm run min && npm run integrity && npm run size",
"cjs": "ascjs --no-default esm cjs",
"graph": "cp node_modules/reactive-props/state.js test/js/reactive-props.js",
"integrity": "cat min.js | openssl dgst -sha256 -binary | openssl base64 -A > nonce.txt && node -e 'const {readFileSync,writeFileSync}=require(`fs`),nonce=readFileSync(`nonce.txt`);writeFileSync(`README.md`,readFileSync(`README.md`).toString().replace(/(integrity)=\"[^\"]*?\"/g,`$1=\"sha256-${nonce}\"`).replace(/(__nonce__ )`[^`]*?`/g,\"$1`\"+nonce+\"`\"))'",
"rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
"rollup:babel": "rollup --config rollup/babel.config.js && sed -i.bck 's/^var /self./' index.js && rm -rf index.js.bck",
"min": "terser index.js --comments='/^!/' -c -m -o min.js",
"size": "echo 'JS';echo \" gzip $(cat min.js | gzip | wc -c)\" && echo \" brotli $(cat min.js | brotli | wc -c)\" && echo 'ES';echo \" gzip $(cat es.js | gzip | wc -c)\" && echo \" brotli $(cat es.js | brotli | wc -c)\""
},
"keywords": [
"custom",
"elements",
"template",
"uce"
],
"author": "Andrea Giammarchi",
"license": "ISC",
"devDependencies": {
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@ungap/degap": "^0.2.7",
"ascjs": "^5.0.1",
"drop-babel-typeof": "^1.0.3",
"rollup": "^2.52.7",
"rollup-plugin-includepaths": "^0.2.4",
"rollup-plugin-terser": "^7.0.2"
},
"module": "./esm/index.js",
"type": "module",
"exports": {
".": {
"import": "./esm/index.js",
"default": "./cjs/index.js"
},
"./package.json": "./package.json"
},
"unpkg": "min.js",
"dependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@ungap/create-content": "^0.3.1",
"@ungap/custom-elements": "^1.0.0",
"@webreflection/lie": "^0.1.1",
"csso": "^4.2.0",
"html-minifier-terser": "^5.1.1",
"qsa-observer": "^2.0.2",
"reactive-props": "^0.2.2",
"terser": "^5.7.1",
"uce": "^1.16.2",
"uce-helpers": "^0.1.1",
"uce-require": "^0.1.9",
"uhooks": "^0.2.8"
},
"repository": {
"type": "git",
"url": "git+https://github.com/WebReflection/uce-template.git"
},
"bugs": {
"url": "https://github.com/WebReflection/uce-template/issues"
},
"homepage": "https://github.com/WebReflection/uce-template#readme"
}