1 | {
|
2 | "name": "web-vitals",
|
3 | "version": "3.1.1",
|
4 | "description": "Easily measure performance metrics in JavaScript",
|
5 | "type": "module",
|
6 | "typings": "dist/modules/index.d.ts",
|
7 | "main": "dist/web-vitals.umd.cjs",
|
8 | "module": "dist/web-vitals.js",
|
9 | "unpkg": "dist/web-vitals.iife.js",
|
10 | "exports": {
|
11 | ".": {
|
12 | "types": "./dist/modules/index.d.ts",
|
13 | "require": "./dist/web-vitals.umd.cjs",
|
14 | "default": "./dist/web-vitals.js"
|
15 | },
|
16 | "./base": {
|
17 | "types": "./base.d.ts",
|
18 | "require": "./dist/web-vitals.base.umd.cjs",
|
19 | "default": "./dist/web-vitals.base.js"
|
20 | },
|
21 | "./base.js": {
|
22 | "types": "./base.d.ts",
|
23 | "require": "./dist/web-vitals.base.umd.cjs",
|
24 | "default": "./dist/web-vitals.base.js"
|
25 | },
|
26 | "./attribution": {
|
27 | "types": "./dist/modules/attribution.d.ts",
|
28 | "require": "./dist/web-vitals.attribution.umd.cjs",
|
29 | "default": "./dist/web-vitals.attribution.js"
|
30 | },
|
31 | "./attribution.js": {
|
32 | "types": "./dist/modules/attribution.d.ts",
|
33 | "require": "./dist/web-vitals.attribution.umd.cjs",
|
34 | "default": "./dist/web-vitals.attribution.js"
|
35 | },
|
36 | "./onCLS.js": {
|
37 | "types": "./dist/modules/onCLS.d.ts",
|
38 | "default": "./dist/modules/onCLS.js"
|
39 | },
|
40 | "./onFCP.js": {
|
41 | "types": "./dist/modules/onFCP.d.ts",
|
42 | "default": "./dist/modules/onFCP.js"
|
43 | },
|
44 | "./onFID.js": {
|
45 | "types": "./dist/modules/onFID.d.ts",
|
46 | "default": "./dist/modules/onFID.js"
|
47 | },
|
48 | "./onINP.js": {
|
49 | "types": "./dist/modules/onINP.d.ts",
|
50 | "default": "./dist/modules/onINP.js"
|
51 | },
|
52 | "./onLCP.js": {
|
53 | "types": "./dist/modules/onLCP.d.ts",
|
54 | "default": "./dist/modules/onLCP.js"
|
55 | },
|
56 | "./onTTFB.js": {
|
57 | "types": "./dist/modules/onTTFB.d.ts",
|
58 | "default": "./dist/modules/onTTFB.js"
|
59 | },
|
60 | "./attribution/onCLS.js": {
|
61 | "types": "./dist/modules/attribution/onCLS.d.ts",
|
62 | "default": "./dist/modules/attribution/onCLS.js"
|
63 | },
|
64 | "./attribution/onFCP.js": {
|
65 | "types": "./dist/modules/attribution/onFCP.d.ts",
|
66 | "default": "./dist/modules/attribution/onFCP.js"
|
67 | },
|
68 | "./attribution/onFID.js": {
|
69 | "types": "./dist/modules/attribution/onFID.d.ts",
|
70 | "default": "./dist/modules/attribution/onFID.js"
|
71 | },
|
72 | "./attribution/onINP.js": {
|
73 | "types": "./dist/modules/attribution/onINP.d.ts",
|
74 | "default": "./dist/modules/attribution/onINP.js"
|
75 | },
|
76 | "./attribution/onLCP.js": {
|
77 | "types": "./dist/modules/attribution/onLCP.d.ts",
|
78 | "default": "./dist/modules/attribution/onLCP.js"
|
79 | },
|
80 | "./attribution/onTTFB.js": {
|
81 | "types": "./dist/modules/attribution/onTTFB.d.ts",
|
82 | "default": "./dist/modules/attribution/onTTFB.js"
|
83 | }
|
84 | },
|
85 | "files": [
|
86 | "attribution.js",
|
87 | "attribution.d.ts",
|
88 | "base.js",
|
89 | "base.d.ts",
|
90 | "dist",
|
91 | "src"
|
92 | ],
|
93 | "scripts": {
|
94 | "build": "run-s clean build:ts build:js",
|
95 | "build:ts": "tsc -b",
|
96 | "build:js": "rollup -c",
|
97 | "clean": "rm -rf dist tsconfig.tsbuildinfo",
|
98 | "dev": "run-p watch test:server",
|
99 | "format": "prettier \"**/*.{cjs,css,html,js,json,md,ts,yml,yaml}\" --write --ignore-path .gitignore",
|
100 | "format:check": "prettier \"**/*.{cjs,css,html,js,json,html,md,ts,yml,yaml}\" --check --ignore-path .gitignore",
|
101 | "lint": "eslint \"*.js\" \"src/**/*.ts\" \"test/**/*.js\"",
|
102 | "lint:fix": "eslint --fix \"*.js\" \"src/**/*.ts\" \"test/**/*.js\"",
|
103 | "postversion": "git push --follow-tags",
|
104 | "release:major": "npm version major -m 'Release v%s' && npm publish",
|
105 | "release:minor": "npm version minor -m 'Release v%s' && npm publish",
|
106 | "release:patch": "npm version patch -m 'Release v%s' && npm publish",
|
107 | "test": "npm-run-all build -p -r test:*",
|
108 | "test:e2e": "wdio wdio.conf.cjs",
|
109 | "test:server": "node test/server.js",
|
110 | "start": "run-s build:ts test:server watch",
|
111 | "watch": "run-p watch:*",
|
112 | "watch:ts": "tsc -b -w",
|
113 | "watch:js": "rollup -c -w",
|
114 | "version": "run-s build",
|
115 | "prepare": "husky install"
|
116 | },
|
117 | "keywords": [
|
118 | "crux",
|
119 | "performance",
|
120 | "metrics",
|
121 | "Core Web Vitals",
|
122 | "CLS",
|
123 | "FCP",
|
124 | "FID",
|
125 | "INP",
|
126 | "LCP",
|
127 | "TTFB"
|
128 | ],
|
129 | "author": {
|
130 | "name": "Philip Walton",
|
131 | "email": "philip@philipwalton.com",
|
132 | "url": "http://philipwalton.com"
|
133 | },
|
134 | "license": "Apache-2.0",
|
135 | "repository": {
|
136 | "type": "git",
|
137 | "url": "https://github.com/GoogleChrome/web-vitals.git"
|
138 | },
|
139 | "bugs": {
|
140 | "url": "https://github.com/GoogleChrome/web-vitals/issues"
|
141 | },
|
142 | "husky": {
|
143 | "hooks": {
|
144 | "pre-commit": "npm run lint"
|
145 | }
|
146 | },
|
147 | "prettier": {
|
148 | "arrowParens": "always",
|
149 | "bracketSpacing": false,
|
150 | "quoteProps": "preserve",
|
151 | "singleQuote": true
|
152 | },
|
153 | "devDependencies": {
|
154 | "@babel/core": "^7.19.3",
|
155 | "@babel/preset-env": "^7.19.3",
|
156 | "@rollup/plugin-replace": "^4.0.0",
|
157 | "@typescript-eslint/eslint-plugin": "^5.38.1",
|
158 | "@typescript-eslint/parser": "^5.38.1",
|
159 | "@wdio/cli": "^7.25.1",
|
160 | "@wdio/local-runner": "^7.25.1",
|
161 | "@wdio/mocha-framework": "^7.25.1",
|
162 | "@wdio/selenium-standalone-service": "^7.26.0",
|
163 | "@wdio/spec-reporter": "^7.25.1",
|
164 | "body-parser": "^1.20.0",
|
165 | "chromedriver": "^107.0.3",
|
166 | "eslint": "^8.24.0",
|
167 | "express": "^4.18.1",
|
168 | "fs-extra": "^10.1.0",
|
169 | "husky": "^8.0.1",
|
170 | "lint-staged": "^13.0.3",
|
171 | "npm-run-all": "^4.1.5",
|
172 | "nunjucks": "^3.2.3",
|
173 | "prettier": "^2.8.0",
|
174 | "rollup": "^2.79.1",
|
175 | "rollup-plugin-babel": "^4.4.0",
|
176 | "rollup-plugin-terser": "^7.0.2",
|
177 | "selenium-standalone": "^8.2.3",
|
178 | "typescript": "^4.8.4",
|
179 | "wdio-chromedriver-service": "^8.0.0"
|
180 | },
|
181 | "lint-staged": {
|
182 | "**/*.{js,ts}": "eslint --fix --ignore-path .gitignore",
|
183 | "**/*.{cjs,css,html,js,json,html,md,ts,yml,yaml}": "prettier --write --ignore-path .gitignore"
|
184 | }
|
185 | }
|