-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
135 lines (135 loc) · 3.61 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
{
"name": "text-metrics",
"version": "4.0.1",
"description": "An efficient text measurement set for the browser.",
"license": "MIT",
"repository": "bezoerb/text-metrics",
"authors": [
"Ben Zörb <[email protected]> (https://github.com/bezoerb)"
],
"engines": {
"node": ">= 12"
},
"scripts": {
"clean": "rimraf lib dist es coverage",
"format": "prettier --write \"{src,test}/**/*.{js,ts}\" \"**/*.md\"",
"lint": "xo",
"test": "jest",
"pretest": "npm run build",
"test:watch": "npm test -- --watch",
"test:cov": "npm test -- --coverage",
"test:browser": "npx browserstack-runner",
"test:all": "npm run test:cov && npm run test:browser",
"build": "microbundle -f es,cjs,umd",
"dev": "microbundle watch",
"prepare": "npm run clean && npm run format && npm run build"
},
"files": [
"dist",
"src"
],
"main": "dist/text-metrics.js",
"umd:main": "dist/text-metrics.js",
"unpkg": "dist/text-metrics.js",
"module": "dist/text-metrics.mjs",
"esmodule": "dist/text-metrics.mjs",
"browser": "dist/text-metrics.js",
"exports": {
"import": "./dist/text-metrics.mjs",
"require": "./dist/text-metrics.js",
"default": "./dist/text-metrics.mjs"
},
"keywords": [
"browser",
"javascript",
"text",
"text-metrics",
"fit-text",
"width",
"font-size",
"height"
],
"devDependencies": {
"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.2",
"@babel/node": "^7.22.19",
"@babel/plugin-external-helpers": "^7.22.5",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/register": "^7.22.15",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.7.0",
"browserstack-runner": "^0.9.4",
"canvas": "^2.11.2",
"core-js": "^3.33.0",
"coveralls": "^3.1.1",
"cssstyle": "^3.0.0",
"eslint": "^8.51.0",
"eslint-config-xo": "^0.43.1",
"eslint-plugin-ava": "^14.0.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^48.0.1",
"finalhandler": "^1.2.0",
"get-port": "^7.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-mock": "^29.7.0",
"jest-util": "^29.7.0",
"jsdom": "^22.1.0",
"microbundle": "^0.15.1",
"prettier": "^3.0.3",
"regenerator-runtime": "^0.14.0",
"rimraf": "^5.0.5",
"selenium-webdriver": "^4.14.0",
"serve-static": "^1.15.0",
"sinon": "^16.1.0",
"xo": "^0.56.0"
},
"prettier": {
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 120,
"bracketSpacing": false
},
"xo": {
"space": 2,
"prettier": true,
"ignores": [
"dist",
"es",
"lib",
"test/jasmine",
"test/TextMetricsSpec.js"
],
"rules": {
"valid-jsdoc": 0,
"import/no-unresolved": 0,
"import/no-unassigned-import": 0,
"unicorn/no-reduce": 0,
"unicorn/prefer-module": 0,
"unicorn/prefer-string-replace-all": 0
}
},
"npmName": "text-metrics",
"npmFileMap": [
{
"basePath": "/dist/",
"files": [
"*.js"
]
}
],
"jest": {
"testEnvironment": "./test/helpers/environment.js",
"transform": {
"^.+\\.(js|jsx)?$": "babel-jest"
}
},
"browserslist": "last 2 versions, ie >= 10, ie_mob >= 10, ff >= 30, chrome >= 34, safari >= 8, opera >= 23, ios >= 7, android >= 4, bb >= 10"
}