-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
95 lines (95 loc) · 3.15 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
{
"name": "react-content-font",
"version": "1.0.1",
"description": "React hook to scan your web page, and generate Google font for only used characters. Especially useful for Japanese and other fonts that contain a lot of characters.",
"author": "<[email protected]>",
"license": "MIT",
"exports": {
"import": "./dist/react-content-font.es.js",
"require": "./dist/react-content-font.js"
},
"types": "dist/index.d.ts",
"files": [
"dist",
"LICENSE"
],
"homepage": "https://github.com/adbutterfield/react-content-font",
"repository": {
"type": "git",
"url": "https://github.com/adbutterfield/react-content-font"
},
"bugs": {
"url": "https://github.com/adbutterfield/react-content-font/issues"
},
"unpkg": "dist/react-content-font.umd.js",
"scripts": {
"prebuild": "npm run clean",
"build": "npm run build:modern && npm run build:min",
"build:modern": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
"build:min": "rollup --config rollup.min.config.ts --configPlugin @rollup/plugin-typescript",
"bundlesize": "yarn build:min && bundlesize",
"clean": "rm -rf dist",
"coverage": "jest --coverage --coverageReporters=text-lcov | coveralls",
"lint": "eslint --ext .ts,.tsx ./src",
"format": "prettier --write \"src/*.ts\"",
"prepare": "npm run build",
"prepublishOnly": "npm test && npm run lint",
"test": "jest --config jest.config.js",
"preversion": "npm run lint && npm run coverage",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags"
},
"keywords": [
"google fonts",
"character set",
"japanese fonts",
"react-hooks",
"react"
],
"peerDependencies": {
"react": ">=16.8.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.22.7",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.2",
"@rollup/pluginutils": "^5.0.2",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.5.2",
"@types/react": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"bundlesize": "^0.18.1",
"coveralls": "^3.1.1",
"eslint": "^8.44.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-react-app": "^7.0.1",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^5.0.0-alpha.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.0",
"jest": "^29.6.1",
"jest-environment-jsdom": "^29.6.1",
"prettier": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^3.26.2",
"rollup-plugin-banner2": "^1.2.2",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
},
"bundlesize": [
{
"path": "./dist/react-content-font.min.es.js",
"maxSize": "5 kB"
}
]
}