react-fontpicker-ts
Version:
A Google font picker component for React
118 lines (117 loc) • 3.85 kB
JSON
{
"name": "react-fontpicker-ts",
"version": "1.2.0",
"private": false,
"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": "react.fontpicker@gmail.com"
},
"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.8",
"@types/opentype.js": "^1.3.8",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react-swc": "^3.8.0",
"cypress": "^14.1.0",
"jsdom": "^26.0.0",
"npm-check-updates": "^17.1.15",
"npm-run-all": "^4.1.5",
"opentype.js": "^1.3.4",
"prettier": "^3.5.3",
"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.4.0",
"typescript": "^5.7.3",
"vite": "^6.2.0",
"vite-plugin-compression2": "^1.3.3",
"vitest": "^3.0.7"
}
}