forked from Zizzamia/perfume.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
122 lines (122 loc) · 3.26 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
{
"name": "perfume.js",
"version": "3.0.0-beta.0",
"description": "JavaScript library that measures First (Contentful) Paint (FP/FCP) and First Input Delay (FID). Annotates components’ performance for Vanilla and Angular applications, into the DevTools timeline. Reports all the results to Google Analytics or your favorite tracking tool.",
"keywords": [
"performance-metrics",
"google-analytics",
"metrics",
"first-paint",
"first-contentful-paint",
"first-input-delay",
"devtools",
"user-timing",
"web-performance",
"webperf",
"angular"
],
"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": "tslint --project tsconfig.json -t codeFrame 'src/emulated-performance.ts' 'src/perfume.ts' 'src/performance.ts' '__tests__/**/*.ts'",
"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",
"prepush": "npm run test:prod"
},
"lint-staged": {
"{src,__tests__}/**/*.ts": [
"git add"
]
},
"jest": {
"transform": {
".(ts|tsx)": "ts-jest"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"testPathIgnorePatterns": [
"_mock.ts",
"/docs/",
"detect-browser.ts",
"idle-queue.ts",
"/node_modules/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"globals": {
"window": true
},
"coveragePathIgnorePatterns": [
"/docs/",
"detect-browser.ts",
"idle-queue.ts",
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"global": {
"branches": 88,
"functions": 95,
"lines": 92,
"statements": 93
}
},
"collectCoverage": true
},
"dependencies": {
"detect-browser": "4.5.1",
"idlize": "0.1.1"
},
"devDependencies": {
"@angular/core": "8.1.0",
"@types/jest": "24.0.15",
"@types/node": "12.0.10",
"colors": "1.3.3",
"commitizen": "^4.0.3",
"coveralls": "3.0.4",
"husky": "3.0.0",
"jest": "24.8.0",
"lint-staged": "9.0.1",
"prettier": "1.18.2",
"rimraf": "2.6.3",
"rollup": "1.21.3",
"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.0.2",
"ts-node": "8.3.0",
"tslint": "5.18.0",
"tslint-config-airbnb": "5.11.1",
"tslint-config-prettier": "1.18.0",
"tslint-plugin-prettier": "2.0.1",
"typescript": "3.5.2",
"validate-commit-msg": "1.1.2"
}
}