This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
forked from alastaircoote/crux-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
74 lines (74 loc) · 2.07 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
{
"name": "@nyt/crux-api",
"version": "1.1.1",
"description": "A Chrome UX Report API wrapper wrapper that supports batching, handles errors, and provides types.",
"repository": "https://github.com/treosh/crux-api",
"bugs": "https://github.com/treosh/crux-api/issues",
"license": "MIT",
"source": "src/index.js",
"module": "src/index.js",
"types": "dist/crux-api.d.ts",
"main": "dist/crux-api.js",
"files": [
"batch",
"dist",
"src"
],
"scripts": {
"build": "run-s build:*",
"build:src": "microbundle build --no-sourcemap --format=cjs",
"build:src-ts": "tsc --declaration --noEmit false --outDir dist/ --allowJs src/index.js && rm dist/index.js && mv dist/index.d.ts dist/crux-api.d.ts",
"build:batch": "rm -rf batch/dist && microbundle build --no-sourcemap --format=cjs --cwd batch",
"build:batch-ts": "tsc --declaration --noEmit false --outDir batch/dist --allowJs batch/src/index.js && mv batch/dist/batch/src/index.d.ts batch/dist/crux-api-batch.d.ts && rm -rf batch/dist/{src,batch}",
"test": "ava -v && prettier -c src batch/src test script README.md && tsc -p . && size-limit",
"prepack": "yarn build"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^4.6.0",
"@types/node-fetch": "^2.5.7",
"ava": "^3.13.0",
"esm": "^3.2.25",
"microbundle": "^0.12.4",
"node-fetch": "^2.6.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"size-limit": "^4.6.0",
"typescript": "^4.0.3"
},
"keywords": [
"CrUX",
"CrUX API",
"Batch API",
"Chrome User Experience Report",
"Chrome UX Report",
"Core Web Vitals",
"Web Performance",
"records.queryRecord",
"FCP",
"First Contentful Paint",
"LCP",
"Largest Contentful Paint",
"FID",
"First Input Delay",
"CLS",
"Cumulative Layout Shift"
],
"size-limit": [
{
"limit": "450B",
"path": "./src/index.js"
},
{
"limit": "850B",
"path": "./batch/src/index.js"
}
],
"ava": {
"require": [
"esm"
],
"files": [
"test/*.js"
]
}
}