forked from ampproject/worker-dom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
108 lines (108 loc) · 3.06 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
{
"name": "@ampproject/worker-dom",
"version": "0.1.7",
"description": "A facsimile of a modern DOM implementation intended to run in a Web Worker.",
"main": "dist/index",
"module": "dist/index.mjs",
"repository": {
"type": "git",
"url": "https://github.com/ampproject/worker-dom.git"
},
"engines": {
"node": ">=8.10.0"
},
"author": "The AMP HTML Authors",
"license": "Apache-2.0",
"scripts": {
"tsc:test:worker": "tsc -p config/tsconfig.test.worker-thread.json",
"tsc:test:main": "tsc -p config/tsconfig.test.main-thread.json",
"tsc:test:tests": "tsc -p config/tsconfig.test.json",
"tsc:build:worker": "tsc -p config/tsconfig.build.worker-thread.json",
"tsc:build:main": "tsc -p config/tsconfig.build.main-thread.json",
"clean": "rimraf output dist",
"pretest": "npm-run-all clean --parallel tsc:test:*",
"test": "ava -v output/test/**/*.js",
"pre~rollup": "npm-run-all clean --parallel tsc:build:*",
"~rollup": "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:*",
"predemo": "cross-env DEBUG_BUNDLE=true npm run ~rollup",
"demo": "node -r esm demo/server.js",
"build": "cross-env MINIFY_BUNDLE=true npm run ~rollup",
"presize": "npm run build",
"size": "bundlesize"
},
"dependencies": {
"dompurify": "1.0.8"
},
"devDependencies": {
"@ampproject/rollup-plugin-closure-compiler": "0.8.2",
"@babel/cli": "7.1.2",
"@babel/core": "7.1.2",
"@babel/plugin-proposal-class-properties": "7.1.0",
"@babel/plugin-proposal-object-rest-spread": "7.0.0",
"@babel/preset-env": "7.1.0",
"acorn": "6.0.2",
"acorn-walk": "6.1.0",
"ava": "0.25.0",
"babel-plugin-minify-replace": "0.5.0",
"babel-plugin-transform-remove-console": "6.9.4",
"bundlesize": "0.17.0",
"cross-env": "5.2.0",
"esm": "3.0.84",
"husky": "1.1.2",
"lint-staged": "7.3.0",
"magic-string": "0.25.1",
"npm-run-all": "4.1.3",
"polka": "0.5.1",
"prettier": "1.14.3",
"rimraf": "2.6.2",
"rollup": "0.66.6",
"rollup-plugin-babel": "4.0.3",
"rollup-plugin-node-resolve": "3.4.0",
"serve-static": "1.13.2",
"tslint": "5.11.0",
"typescript": "3.1.4"
},
"lint-staged": {
"*.ts": [
"prettier --config config/.prettierrc --write",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test && npm run size"
}
},
"bundlesize": [
{
"path": "./dist/worker.mjs",
"compression": "brotli",
"maxSize": "6.5 kB"
},
{
"path": "./dist/worker.safe.mjs",
"compression": "brotli",
"maxSize": "7 kB"
},
{
"path": "./dist/index.mjs",
"compression": "brotli",
"maxSize": "2 kB"
},
{
"path": "./dist/index.safe.mjs",
"compression": "brotli",
"maxSize": "8 kB"
}
],
"esm": {
"cjs": true
},
"files": [
"dist"
]
}