-
Notifications
You must be signed in to change notification settings - Fork 112
/
package.json
139 lines (139 loc) · 3.58 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"name": "perfume.js",
"version": "9.4.1",
"description": "Web performance library for measuring all User-centric performance metrics, including the latest Web Vitals.",
"keywords": [
"performance",
"performance-metrics",
"metrics",
"navigation-timing",
"time-to-first-byte",
"ttfb",
"navigator-interface",
"resource-timing",
"service-worker-status",
"storageManager-interface",
"first-paint",
"fp",
"first-contentful-paint",
"fcp",
"first-input-delay",
"fid",
"largest-contentful-paint",
"lcp",
"cumulative-layout-shift",
"cls",
"total-blocking-time",
"tbt",
"element-timing",
"web-vitals"
],
"iife": "dist/perfume.iife.min.js",
"main": "dist/perfume.min.js",
"module": "dist/perfume.esm.min.js",
"unpkg": "dist/perfume.umd.min.js",
"typings": "dist/types/perfume.d.ts",
"files": [
"angular",
"dist"
],
"author": "Leonardo Zizzamia",
"repository": {
"type": "git",
"url": "https://github.com/Zizzamia/perfume.js.git"
},
"license": "MIT",
"engines": {
"node": ">=10.0.0"
},
"scripts": {
"lint": "eslint -c .eslintrc.js --ext .ts src",
"prebuild": "rimraf dist",
"build": "tsc && tsc --module commonjs --outDir dist/lib && rollup -c rollup.config.ts",
"start": "tsc -w & rollup -c rollup.config.ts -w",
"test": "jest",
"test:watch": "jest --watch",
"test:prod": "npm run lint && npm run test -- --coverage --no-cache",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"commit": "git-cz",
"commitmsg": "validate-commit-msg",
"precommit": "lint-staged",
"prettier": "prettier --write src & prettier --write __tests__",
"prepush": "npm run test:prod",
"ci": "npm run test:prod && npm run build"
},
"lint-staged": {
"{src,__tests__}/**/*.ts": [
"git add"
]
},
"jest": {
"transform": {
".(ts|tsx)": "ts-jest"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"testPathIgnorePatterns": [
"_mock.ts",
"stepsTestConstants.ts",
"/docs/",
"/node_modules/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"globals": {
"window": true
},
"coveragePathIgnorePatterns": [
"/docs/",
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"global": {
"branches": 92,
"functions": 95,
"lines": 95,
"statements": 95
}
},
"collectCoverage": true
},
"dependencies": {
"web-vitals": "^3.5.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "23.0.2",
"@rollup/plugin-node-resolve": "15.0.1",
"@types/jest": "29.2.2",
"@types/node": "18.11.9",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/eslint-plugin-tslint": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"colors": "1.4.0",
"commitizen": "^4.2.5",
"coveralls": "3.1.1",
"eslint": "^8.26.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^39.6.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.31.10",
"husky": "^8.0.1",
"jest": "^29.2.2",
"jest-environment-jsdom": "^29.2.2",
"lint-staged": "13.0.3",
"prettier": "^2.7.1",
"rimraf": "3.0.2",
"rollup": "^2.68.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "0.6.3",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^29.0.3",
"ts-node": "10.9.1",
"typescript": "4.8.4",
"validate-commit-msg": "^1.1.3"
}
}