UNPKG

2.65 kBJSONView Raw
1{
2 "name": "web-vitals",
3 "version": "2.0.1",
4 "description": "Easily measure performance metrics in JavaScript",
5 "main": "dist/web-vitals.umd.js",
6 "module": "dist/web-vitals.js",
7 "typings": "dist/modules/index.d.ts",
8 "files": [
9 "base.js",
10 "base.d.ts",
11 "dist",
12 "src"
13 ],
14 "scripts": {
15 "build": "run-s clean build:ts build:js",
16 "build:ts": "tsc -b",
17 "build:js": "rollup -c",
18 "clean": "rm -rf dist tsconfig.tsbuildinfo",
19 "dev": "run-p watch test:server",
20 "lint": "eslint \"*.js\" \"src/**/*.ts\" \"test/**/*.js\"",
21 "lint:fix": "eslint --fix \"*.js\" \"src/**/*.ts\" \"test/**/*.js\"",
22 "postversion": "git push --follow-tags",
23 "release:major": "npm version major -m 'Release v%s' && npm publish",
24 "release:minor": "npm version minor -m 'Release v%s' && npm publish",
25 "release:patch": "npm version patch -m 'Release v%s' && npm publish",
26 "test": "npm-run-all build -p -r test:*",
27 "test:e2e": "wdio wdio.conf.js",
28 "test:server": "node test/server.js",
29 "start": "run-s build:ts test:server watch",
30 "watch": "run-p watch:*",
31 "watch:ts": "tsc -b -w",
32 "watch:js": "rollup -c -w",
33 "version": "run-s build",
34 "prepare": "husky install"
35 },
36 "keywords": [
37 "crux",
38 "performance",
39 "metrics",
40 "CLS",
41 "FCP",
42 "FID",
43 "LCP",
44 "TTFB"
45 ],
46 "author": {
47 "name": "Philip Walton",
48 "email": "philip@philipwalton.com",
49 "url": "http://philipwalton.com"
50 },
51 "license": "Apache-2.0",
52 "repository": {
53 "type": "git",
54 "url": "https://github.com/GoogleChrome/web-vitals.git"
55 },
56 "bugs": {
57 "url": "https://github.com/GoogleChrome/web-vitals/issues"
58 },
59 "husky": {
60 "hooks": {
61 "pre-commit": "npm run lint"
62 }
63 },
64 "devDependencies": {
65 "@babel/core": "^7.14.3",
66 "@babel/preset-env": "^7.14.4",
67 "@rollup/plugin-replace": "^2.4.2",
68 "@typescript-eslint/eslint-plugin": "^4.26.0",
69 "@typescript-eslint/parser": "^4.26.0",
70 "@wdio/cli": "^7.7.2",
71 "@wdio/local-runner": "^7.7.2",
72 "@wdio/mocha-framework": "^7.7.2",
73 "@wdio/selenium-standalone-service": "^7.7.0",
74 "@wdio/spec-reporter": "^7.7.0",
75 "babel-eslint": "^10.1.0",
76 "body-parser": "^1.19.0",
77 "chromedriver": "^90.0.1",
78 "eslint": "^7.27.0",
79 "eslint-config-google": "^0.14.0",
80 "express": "^4.17.1",
81 "fs-extra": "^10.0.0",
82 "husky": "^6.0.0",
83 "npm-run-all": "^4.1.5",
84 "nunjucks": "^3.2.3",
85 "rollup": "^2.50.5",
86 "rollup-plugin-babel": "^4.4.0",
87 "rollup-plugin-terser": "^7.0.2",
88 "typescript": "^4.3.2",
89 "wdio-chromedriver-service": "^7.1.0"
90 }
91}