-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
executable file
·117 lines (117 loc) · 3.76 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
{
"name": "react-fontpicker-ts",
"version": "1.1.0",
"private": true,
"description": "A Google font picker component for React",
"keywords": [
"fontpicker",
"font",
"picker",
"react",
"google",
"font",
"fonts",
"selector",
"component"
],
"homepage": "https://ae9is.github.io/react-fontpicker",
"bugs": {
"url": "https://github.com/ae9is/react-fontpicker/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ae9is/react-fontpicker.git"
},
"author": {
"name": "ae9is",
"email": "[email protected]"
},
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"sideEffects": [
"*.css",
"*.png"
],
"scripts": {
"build": "run-s build:*",
"build:clean": "rm -rf dist .tsbuildinfo && rm -rf docs",
"build:tsup": "tsup",
"build:types": "tsc -p tsconfig.types.json",
"build:vite": "vite build",
"dev": "run-s dev:*",
"dev:vite": "vite --port 3000",
"test-all": "run-p test:*",
"test": "run-p test:vitest",
"test:cypress-e2e": "start-server-and-test preview http://localhost:4173/react-fontpicker/ cypress:fast:e2e",
"test:cypress-comp": "npm run cypress:fast:comp",
"test:vitest": "npm run vitest",
"cypress:run": "run-p cypress:run:*",
"cypress:run:e2e": "CYPRESS_CRASH_REPORTS=0 cypress run --e2e",
"cypress:run:comp": "CYPRESS_CRASH_REPORTS=0 cypress run --component",
"cypress:fast:e2e": "npm run cypress:run:e2e --config video=false screenshot=false experimentalStudio=false",
"cypress:fast:comp": "npm run cypress:run:comp --config video=false screenshot=false useExperimentalComponentTesting=true",
"cypress:open": "CYPRESS_CRASH_REPORTS=0 cypress open",
"vitest": "vitest run",
"format": "prettier --write src cypress scripts",
"lint": "eslint src cypress",
"build-font-previews-php": "php ./scripts/build-font-previews.php",
"build-font-previews-lite": "ts-node --project tsconfig.scripts.json ./scripts/buildFontPreviews.ts --lite",
"build-font-previews": "ts-node --project tsconfig.scripts.json ./scripts/buildFontPreviews.ts --googlefonts",
"build-font-previews-manual": "ts-node --project tsconfig.scripts.json ./scripts/buildFontPreviews.ts manual-fonts-test 'BickleyScript|handwriting|0,400|./font-cache/bickleyscript.ttf'",
"svg-text-test": "tsc -p tsconfig.scripts.json && node ./scripts/getTextSvg.js",
"preview": "vite preview --host 0.0.0.0 --outDir docs",
"upgrade": "npm run upgrade-packages && npm install && npm run build && npm run test",
"upgrade-packages": "ncu -u"
},
"tsup": {
"entry": [
"index.ts"
],
"clean": true,
"splitting": false,
"dts": false,
"minify": false,
"sourcemap": true,
"target": "ES2015",
"format": [
"cjs",
"esm"
]
},
"peerDependencies": {
"react": ">=16.8"
},
"devDependencies": {
"@cypress/react": "^9.0.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^22.13.1",
"@types/opentype.js": "^1.3.8",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react-swc": "^3.8.0",
"cypress": "^14.0.2",
"jsdom": "^26.0.0",
"npm-check-updates": "^17.1.14",
"npm-run-all": "^4.1.5",
"opentype.js": "^1.3.4",
"prettier": "^3.5.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"start-server-and-test": "^2.0.10",
"ts-node": "^10.9.2",
"tsconfig": "file:*",
"tsup": "^8.3.6",
"typescript": "^5.7.3",
"vite": "^6.1.0",
"vite-plugin-compression2": "^1.3.3",
"vitest": "^3.0.5"
}
}