-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpackage.json
111 lines (111 loc) · 2.79 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
{
"name": "nemetric",
"version": "1.2.5",
"description": "前端性能监控,采集以及上报。用于测量第一个dom生成的时间(FP/FCP/LCP)、用户最早可操作时间(fid|tti)和组件的生命周期性能,,网络状况以及资源大小等等。向监控后台报告实际用户测量值。",
"main": "dist/nemetric.min.js",
"iife": "dist/nemetric.iife.min.js",
"module": "dist/nemetric.esm.min.js",
"unpkg": "dist/nemetric.umd.min.js",
"typings": "dist/types/nemetric.d.ts",
"keywords": [
"performance-metrics",
"metrics",
"navigation-timing",
"navigatorInformation",
"first-paint",
"first-contentful-paint",
"first-input-delay",
"largest-contentful-paint",
"devtools",
"user-timing",
"web-performance",
"webperf",
"hardwareConcurrency",
"downlink",
"downlinkMax",
"effectiveType",
"rtt",
"react",
"性能",
"采集",
"监控"
],
"files": [
"dist"
],
"engines": {
"node": ">=10.0.0"
},
"scripts": {
"test": "jest",
"prebuild": "rimraf dist",
"build": "tsc && tsc --module commonjs --outDir dist/lib && rollup -c rollup.config.ts",
"major": "npm version major -m \"Upgrade to %s\"",
"minor": "npm version minor -m \"Upgrade to %s\"",
"patch": "npm version patch -m \"Upgrade to %s\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/WarrenJones/nemetric.git"
},
"jest": {
"transform": {
".(ts|tsx)": "ts-jest"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"testPathIgnorePatterns": [
"_mock.ts",
"detect-browser.ts",
"idle-queue.ts",
"/node_modules/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"globals": {
"window": true
},
"coveragePathIgnorePatterns": [
"detect-browser.ts",
"idle-queue.ts",
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"global": {
"branches": 98,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"collectCoverage": true
},
"author": "Warren",
"license": "ISC",
"bugs": {
"url": "https://github.com/WarrenJones/nemetric/issues"
},
"homepage": "https://github.com/WarrenJones/nemetric#readme",
"dependencies": {
"detect-browser": "4.5.1",
"idlize": "0.1.1"
},
"devDependencies": {
"@types/jest": "^24.0.23",
"@types/node": "^13.7.4",
"jest": "^24.9.0",
"rollup": "^1.31.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-terser": "^5.1.2",
"ts-jest": "^24.2.0",
"ts-node": "^8.5.4",
"typescript": "^3.8.2",
"webpack": "^4.25.1",
"webpack-cli": "^3.3.10"
}
}