-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
103 lines (103 loc) · 3.14 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
{
"name": "pending-beacon-polyfill",
"version": "0.1.0",
"description": "A polyfill for the experimental PendingBeacon API",
"type": "module",
"typings": "dist/modules/PendingPostBeacon.d.ts",
"main": "dist/PendingPostBeacon.cjs",
"module": "dist/PendingPostBeacon.js",
"unpkg": "dist/PendingPostBeacon.js",
"exports": {
".": {
"types": "./dist/modules/PendingPostBeacon.d.ts",
"require": "./dist/PendingPostBeacon.cjs",
"default": "./dist/PendingPostBeacon.js"
}
},
"files": [
"dist",
"src"
],
"scripts": {
"build": "run-s clean build:ts build:js size",
"build:ts": "tsc -b",
"build:js": "rollup -c",
"clean": "rm -rf dist tsconfig.tsbuildinfo",
"dev": "run-p -c watch test:server",
"format": "prettier \"**/*.{cjs,html,js,ts}\" --write --ignore-path .gitignore",
"lint": "eslint --fix \"**/*.js\" --ignore-path .gitignore",
"postversion": "git push --follow-tags",
"prepare": "husky install",
"release:major": "npm version major -m 'Release v%s' && npm publish",
"release:minor": "npm version minor -m 'Release v%s' && npm publish",
"release:patch": "npm version patch -m 'Release v%s' && npm publish",
"size": "brotli-size --raw dist/PendingPostBeacon.js",
"start": "run-s build:ts test:server watch",
"test": "npm-run-all build -p -r test:*",
"test:e2e": "wdio wdio.conf.cjs",
"test:server": "node test/server.js",
"watch": "run-p watch:*",
"version": "run-s build",
"watch:ts": "tsc -b -w",
"watch:js": "rollup -c -w"
},
"keywords": [
"unload",
"beacon",
"page",
"pending"
],
"author": {
"name": "Philip Walton",
"email": "[email protected]",
"url": "http://philipwalton.com"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/GoogleChromeLabs/pending-beacon-polyfill.git"
},
"bugs": {
"url": "https://github.com/GoogleChromeLabs/pending-beacon-polyfill/issues"
},
"prettier": {
"arrowParens": "always",
"bracketSpacing": false,
"singleQuote": true,
"trailingComma": "es5"
},
"devDependencies": {
"@babel/core": "^7.19.6",
"@babel/preset-env": "^7.19.4",
"@rollup/plugin-babel": "^6.0.2",
"@rollup/plugin-replace": "^5.0.1",
"@rollup/plugin-terser": "^0.1.0",
"@wdio/cli": "^7.25.4",
"@wdio/local-runner": "^7.25.4",
"@wdio/mocha-framework": "^7.25.4",
"@wdio/selenium-standalone-service": "^7.25.4",
"@wdio/spec-reporter": "^7.25.4",
"body-parser": "^1.20.1",
"brotli-size-cli": "^1.0.0",
"chai": "^4.3.6",
"chromedriver": "^107.0.1",
"eslint": "^8.26.0",
"eslint-config-google": "^0.14.0",
"express": "^4.18.2",
"fs-extra": "^10.1.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"mocha": "^10.1.0",
"npm-run-all": "^4.1.5",
"nunjucks": "^3.2.3",
"prettier": "^2.7.1",
"rollup": "^3.2.3",
"sinon": "^14.0.1",
"typescript": "^4.8.4",
"wdio-chromedriver-service": "^8.0.0"
},
"lint-staged": {
"**/*.js": "eslint --fix --ignore-path .gitignore",
"**/*.{cjs,html,js,ts}": "prettier --write --ignore-path .gitignore"
}
}