forked from ampproject/worker-dom
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
133 lines (133 loc) · 3.61 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"name": "@braneproject/worker-dom",
"version": "0.1.0",
"description": "A facsimile of a modern DOM implementation intended to run in a Web Worker.",
"main": "dist/main",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/braneproject/worker-dom.git"
},
"engines": {
"node": ">=10.14"
},
"license": "Apache-2.0",
"scripts": {
"tsc:worker": "tsc -p src/worker-thread/tsconfig.json",
"tsc:main": "tsc -p src/main-thread/tsconfig.json",
"tsc:tests": "tsc -p src/test/tsconfig.json",
"tsc:tests-main": "tsc -p src/test/main-thread/tsconfig.json",
"clean": "rimraf output dist",
"test": "run-p \"tsc:*\" && ava -v",
"~rollup": "run-p tsc:worker tsc:main && rollup --config config/rollup.config.js",
"lint:worker": "tslint -c config/tslint.json -p src/worker-thread/",
"lint:main": "tslint -c config/tslint.json -p src/main-thread/",
"lint": "npm-run-all --parallel lint:*",
"demo": "DEBUG_BUNDLE=true npm-run-all ~rollup && node -r esm demo/server.js",
"build": "MINIFY_BUNDLE=true npm-run-all ~rollup",
"presize": "npm-run-all build",
"size": "filesize",
"release": "HUSKY_SKIP_HOOKS=1 np --no-2fa",
"brane:idl": "run-p tsc:worker tsc:main && node brane/scripts/convert-idl.cjs",
"brane:build": "rollup --config brane/config/rollup.config.js",
"brane:demo": "node -r esm brane/demo/server.js",
"prepack": "npm-run-all clean build brane:build"
},
"devDependencies": {
"@ampproject/filesize": "4.3.0",
"@ampproject/rollup-plugin-closure-compiler": "0.27.0",
"@babel/cli": "7.16.7",
"@babel/core": "7.16.7",
"@babel/preset-env": "7.16.7",
"@rollup/plugin-babel": "5.3.0",
"@rollup/plugin-replace": "3.0.1",
"@types/node": "16.11.19",
"@types/sinon": "10.0.6",
"acorn": "8.7.0",
"acorn-walk": "8.2.0",
"ava": "3.15.0",
"babel-plugin-minify-replace": "0.5.0",
"babel-plugin-transform-remove-console": "6.9.4",
"benchmark": "2.1.4",
"diff": "5.0.0",
"esm": "3.2.25",
"husky": "7.0.4",
"jsdom": "19.0.0",
"lint-staged": "12.1.7",
"magic-string": "0.25.7",
"np": "7.6.0",
"npm-run-all": "4.1.5",
"polka": "0.5.2",
"prettier": "2.5.1",
"rimraf": "3.0.2",
"rollup": "2.63.0",
"rollup-plugin-analyzer": "4.0.0",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-terser": "7.0.2",
"sinon": "12.0.1",
"sirv": "1.0.19",
"tslint": "6.1.3",
"typescript": "4.5.4",
"webidl2js": "17.0.0"
},
"lint-staged": {
"*.{js,ts}": [
"prettier --config config/.prettierrc --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm-run-all clean test clean size"
}
},
"filesize": {
"track": [
"./dist/*.(js|mjs)",
"./dist/worker/**/*.(js|mjs)",
"./dist/amp-production/**/*.(js|mjs)"
],
"./dist/main.mjs": {
"brotli": "4 kB"
},
"./dist/main.js": {
"brotli": "5 kB"
},
"./dist/worker/worker.mjs": {
"brotli": "13 kB"
},
"./dist/worker/worker.js": {
"brotli": "14 kB"
},
"./dist/amp-production/main.mjs": {
"brotli": "4.5 kB"
},
"./dist/amp-production/worker/worker.mjs": {
"brotli": "13 kB"
},
"./dist/amp-production/worker/worker.nodom.mjs": {
"brotli": "2 kB"
}
},
"esm": {
"cjs": true
},
"ava": {
"require": [
"esm"
],
"files": [
"output/test/**/*.test.js"
]
},
"volta": {
"node": "16.13.2",
"yarn": "1.22.17"
},
"publishConfig": {
"access": "public"
},
"packageManager": "[email protected]"
}