-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
140 lines (140 loc) · 4.02 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
140
{
"name": "perf-marks",
"version": "1.14.2",
"author": "Will Mendes <willmendesneto@gmail.com>",
"description": "The simplest and lightweight solution for User Timing API in Javascript.",
"repository": {
"type": "git",
"url": "https://github.com/willmendesneto/perf-marks.git"
},
"sideEffects": false,
"license": "MIT",
"browser": "dist/umd/perf-marks.js",
"jsnext:main": "dist/esm/index.js",
"module": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"es2015": "dist/es2015/index.js",
"es2020": "dist/es2020/index.js",
"cjs": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
"keywords": [
"perf-marks",
"performance",
"user timing api",
"timing",
"api"
],
"dependencies": {
"tslib": "^2.3.0"
},
"devDependencies": {
"@types/jest": "^26.0.20",
"@types/node": "^14.14.27",
"@typescript-eslint/eslint-plugin": "^4.15.0",
"@typescript-eslint/parser": "^4.15.0",
"bundlesize": "^0.18.1",
"changelog-verify": "^1.1.0",
"coveralls": "^3.1.0",
"depcheck": "^1.2.0",
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-compat": "^3.9.0",
"eslint-plugin-prettier": "^3.3.1",
"husky": "^5.0.9",
"jest": "^26.4.2",
"jsdom": "^16.4.0",
"lint-staged": "^10.5.4",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"rollup": "^2.39.0",
"rollup-plugin-node-resolve": "^5.2.0",
"ts-jest": "^26.5.1",
"ts-node": "^9.0.0",
"typescript": "^4.1.5",
"typings": "^2.1.1",
"uglify-js": "^3.12.7",
"usertiming": "^0.1.8",
"version-changelog": "^3.1.0"
},
"engines": {
"node": ">=12"
},
"scripts": {
"compile": "tsc",
"clean": "rm -rf ./dist ./.jest ./coverage ./lib",
"build": "yarn clean && npm-run-all --parallel build:es2015 build:cjs build:esm build:es2020 && yarn build:umd",
"build:umd": "rollup --config && yarn build:umd:min",
"build:umd:min": "uglifyjs --compress --mangle --comments -o dist/umd/perf-marks.min.js -- dist/umd/perf-marks.js && gzip dist/umd/perf-marks.min.js -c > dist/umd/perf-marks.min.js.gz",
"build:es2020": "tsc --module esnext --target es2020 --outDir dist/es2020",
"build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015",
"build:esm": "tsc --module esnext --target es5 --outDir dist/esm",
"build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs",
"depcheck": "depcheck",
"test": "jest",
"pretest:ci": "yarn lint && yarn depcheck",
"test:ci": "jest --coverage --coverageReporters=text-lcov | coveralls",
"check-coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage",
"bundlesize": "bundlesize",
"lint": "eslint '{scripts,src}/**/*.[tj]s'",
"lint:fix": "prettier --no-editorconfig --write",
"version": "version-changelog CHANGELOG.md && changelog-verify CHANGELOG.md && git add CHANGELOG.md"
},
"bundlesize": [
{
"path": "./dist/esm/index.js",
"maxSize": "132B"
},
{
"path": "./dist/es2015/index.js",
"maxSize": "132B"
},
{
"path": "./dist/cjs/index.js",
"maxSize": "224B"
},
{
"path": "./dist/umd/perf-marks.js",
"maxSize": "3.5KB"
},
{
"path": "./dist/umd/perf-marks.min.js",
"maxSize": "1.44KB"
},
{
"path": "./dist/cjs/entrypoints/marks.js",
"maxSize": "167B"
},
{
"path": "./dist/cjs/entrypoints/entries.js",
"maxSize": "167B"
},
{
"path": "./dist/cjs/entrypoints/utils.js",
"maxSize": "205B"
},
{
"path": "./dist/cjs/entrypoints/profiler.js",
"maxSize": "167B"
}
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts}": [
"prettier --no-editorconfig --write",
"git add"
]
},
"browserslist": [
"last 1 chrome versions",
"last 1 edge versions",
"last 1 firefox versions",
"last 1 safari versions",
"last 1 and_chr versions",
"last 1 ios_saf versions",
"ie 11"
]
}