-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
117 lines (117 loc) · 3.17 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
{
"name": "uxm",
"version": "2.0.0-beta6",
"description": "A modular front-end performance library to collect User eXperience Metrics (UXM).",
"repository": "treosh/uxm",
"bugs": "https://github.com/treosh/uxm/issues",
"license": "MIT",
"source": "src/index.js",
"module": "src/index.js",
"sideEffects": false,
"types": "dist/index.d.js",
"main": "dist/uxm.js",
"exports": {
".": {
"browser": "./src/index.js",
"import": "./src/index.js",
"require": "./dist/uxm.js"
},
"./experimental": {
"browser": "./src/experimental/index.js",
"import": "./src/experimental/index.js",
"require": "./dist/experimental.js"
}
},
"files": [
"dist",
"src",
"experimental"
],
"keywords": [
"web performance",
"user experience",
"user-centric metrics",
"first paint",
"first contentful paint",
"largest contentful paint",
"first input delay",
"cumulative layout shift",
"paint timing api",
"user timing api",
"network information api",
"chrome user experience report",
"crux",
"network connection",
"device memory"
],
"scripts": {
"build": "rm -rf dist && yarn build:declarations && yarn build:core && yarn build:experimental && yarn build:extension",
"build:declarations": "tsc --declaration --noEmit false --outDir dist/ --allowJs src/index.js src/experimental/index.js && rm -r dist/*.js dist/**/*.js",
"build:core": "microbundle build --no-sourcemap --format=cjs",
"build:experimental": "microbundle build --cwd experimental --no-sourcemap --format=cjs",
"build:extension": "yarn rollup -c extension/rollup.config.js",
"test": "prettier -c src/** test/** examples/** extension/src/** README.md && tsc -p . && yarn build && ava && size-limit",
"prepack": "yarn build"
},
"ava": {
"require": [
"esm"
],
"files": [
"test/*.js"
]
},
"devDependencies": {
"@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^7.1.3",
"@size-limit/preset-small-lib": "^4.4.5",
"@types/babel__core": "^7.1.7",
"@types/chrome": "^0.0.104",
"@types/node": "12",
"@types/puppeteer": "^2.0.1",
"ava": "^3.7.1",
"esm": "^3.2.25",
"htm": "^3.0.4",
"linaria": "^2.0.0-alpha.1",
"microbundle": "^0.12.0-next.8",
"preact": "^10.4.0",
"prettier": "^2.0.4",
"puppeteer": "^3.0.0",
"rollup": "^2.6.1",
"rollup-plugin-css-only": "^2.0.0",
"rollup-plugin-terser": "^5.3.0",
"size-limit": "^4.4.5",
"typescript": "^3.8.3"
},
"size-limit": [
{
"limit": "2.5KB",
"path": "./src/index.js"
},
{
"limit": "2.5KB",
"path": "./src/experimental/index.js"
},
{
"limit": "1.55KB",
"path": "./examples/user-centric-metrics.js"
},
{
"limit": "1.6KB",
"path": "./examples/crux-metrics.js"
},
{
"limit": "0.65KB",
"path": "./examples/react-use-time-hook.js"
},
{
"limit": "0.8KB",
"path": "./examples/custom-layout-shift.js"
},
{
"limit": "0.7KB",
"path": "./examples/google-analytics-reporter.js"
}
]
}