package.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. {
  2. "name": "react-colorful",
  3. "version": "5.6.1",
  4. "description": "🎨 A tiny (2,8 KB) color picker component for React and Preact apps. Fast, well-tested, dependency-free, mobile-friendly and accessible",
  5. "source": "src/index.ts",
  6. "main": "dist/index.js",
  7. "module": "dist/index.module.js",
  8. "esmodule": "dist/index.esmodule.js",
  9. "umd:main": "dist/index.umd.js",
  10. "types": "dist/index.d.ts",
  11. "exports": {
  12. ".": {
  13. "types": "./dist/index.d.ts",
  14. "umd": "./dist/index.umd.js",
  15. "import": "./dist/index.mjs",
  16. "require": "./dist/index.js",
  17. "default": "./dist/index.module.js"
  18. }
  19. },
  20. "scripts": {
  21. "lint": "eslint src/**/*.{ts,tsx} demo/src/**/*.{ts,tsx}",
  22. "size": "npm run build && size-limit",
  23. "check-types": "tsc --noEmit true",
  24. "test": "jest tests --coverage",
  25. "build": "del-cli 'dist/*' && microbundle build --entry src/index.ts --jsx React.createElement --name react-colorful --css inline --tsconfig tsconfig.build.json",
  26. "postbuild": "cpy dist/index.module.js dist --rename=index.mjs && cpy dist/index.module.js.map dist --rename=index.mjs.map",
  27. "prepublishOnly": "npm run build",
  28. "check-release": "npm publish --dry-run",
  29. "release": "npm publish",
  30. "start-demo": "parcel demo/src/index.html --out-dir demo/dist --open",
  31. "build-demo": "del-cli 'demo/dist/*' && parcel build demo/src/index.html --out-dir demo/dist --public-url https://omgovich.github.io/react-colorful/",
  32. "deploy-demo": "npm run build-demo && gh-pages -d demo/dist"
  33. },
  34. "size-limit": [
  35. {
  36. "path": "dist/index.module.js",
  37. "name": "HexColorPicker",
  38. "import": "{ HexColorPicker }",
  39. "limit": "3 KB"
  40. },
  41. {
  42. "path": "dist/index.module.js",
  43. "name": "HslColorPicker",
  44. "import": "{ HslColorPicker }",
  45. "limit": "3 KB"
  46. },
  47. {
  48. "path": "dist/index.module.js",
  49. "name": "HslaColorPicker",
  50. "import": "{ HslaColorPicker }",
  51. "limit": "3 KB"
  52. },
  53. {
  54. "path": "dist/index.module.js",
  55. "name": "HslStringColorPicker",
  56. "import": "{ HslStringColorPicker }",
  57. "limit": "3 KB"
  58. },
  59. {
  60. "path": "dist/index.module.js",
  61. "name": "HslaStringColorPicker",
  62. "import": "{ HslaStringColorPicker }",
  63. "limit": "3 KB"
  64. },
  65. {
  66. "path": "dist/index.module.js",
  67. "name": "HsvColorPicker",
  68. "import": "{ HsvColorPicker }",
  69. "limit": "3 KB"
  70. },
  71. {
  72. "path": "dist/index.module.js",
  73. "name": "HsvaColorPicker",
  74. "import": "{ HsvaColorPicker }",
  75. "limit": "3 KB"
  76. },
  77. {
  78. "path": "dist/index.module.js",
  79. "name": "HsvStringColorPicker",
  80. "import": "{ HsvStringColorPicker }",
  81. "limit": "3 KB"
  82. },
  83. {
  84. "path": "dist/index.module.js",
  85. "name": "HsvaStringColorPicker",
  86. "import": "{ HsvaStringColorPicker }",
  87. "limit": "3 KB"
  88. },
  89. {
  90. "path": "dist/index.module.js",
  91. "name": "RgbColorPicker",
  92. "import": "{ RgbColorPicker }",
  93. "limit": "3 KB"
  94. },
  95. {
  96. "path": "dist/index.module.js",
  97. "name": "RgbaColorPicker",
  98. "import": "{ RgbaColorPicker }",
  99. "limit": "3 KB"
  100. },
  101. {
  102. "path": "dist/index.module.js",
  103. "name": "RgbStringColorPicker",
  104. "import": "{ RgbStringColorPicker }",
  105. "limit": "3 KB"
  106. },
  107. {
  108. "path": "dist/index.module.js",
  109. "name": "RgbaStringColorPicker",
  110. "import": "{ RgbaStringColorPicker }",
  111. "limit": "3.1 KB"
  112. },
  113. {
  114. "path": "dist/index.module.js",
  115. "name": "HexColorInput",
  116. "import": "{ HexColorInput }",
  117. "limit": "3 KB"
  118. }
  119. ],
  120. "sideEffects": false,
  121. "jest": {
  122. "verbose": true,
  123. "transform": {
  124. "\\.js$": "jest-esm-jsx-transform",
  125. "^.+\\.tsx?$": "ts-jest"
  126. },
  127. "moduleNameMapper": {
  128. "\\.css$": "<rootDir>/tests/__mocks__/styles.css.mock.ts"
  129. }
  130. },
  131. "files": [
  132. "dist/*.{js,mjs,ts,map}",
  133. "dist/components/*.ts",
  134. "dist/utils/nonce.d.ts",
  135. "LICENSE",
  136. "ACKNOWLEDGMENTS",
  137. "README.md",
  138. "package.json"
  139. ],
  140. "repository": "omgovich/react-colorful",
  141. "keywords": [
  142. "react",
  143. "color picker",
  144. "react-component",
  145. "colorpicker",
  146. "tiny",
  147. "hex",
  148. "color",
  149. "front-end",
  150. "color-picker",
  151. "accessible",
  152. "react-color",
  153. "accessibility",
  154. "aria",
  155. "a11y",
  156. "wai-aria"
  157. ],
  158. "author": "Vlad Shilov <omgovich@ya.ru>",
  159. "license": "MIT",
  160. "bugs": {
  161. "url": "https://github.com/omgovich/react-colorful/issues"
  162. },
  163. "homepage": "https://omgovich.github.io/react-colorful",
  164. "peerDependencies": {
  165. "react": ">=16.8.0",
  166. "react-dom": ">=16.8.0"
  167. },
  168. "devDependencies": {
  169. "@size-limit/preset-small-lib": "^4.10.1",
  170. "@testing-library/react": "^11.2.5",
  171. "@types/jest": "^26.0.20",
  172. "@types/react": "^17.0.0",
  173. "@types/react-dom": "^17.0.0",
  174. "@types/react-frame-component": "^4.1.3",
  175. "@typescript-eslint/eslint-plugin": "^4.17.0",
  176. "@typescript-eslint/parser": "^4.17.0",
  177. "cpy-cli": "^3.1.1",
  178. "del-cli": "^3.0.1",
  179. "eslint": "^7.21.0",
  180. "eslint-config-prettier": "^8.1.0",
  181. "eslint-plugin-prettier": "^3.3.1",
  182. "eslint-plugin-react": "^7.22.0",
  183. "eslint-plugin-react-hooks": "^4.2.0",
  184. "gh-pages": "^3.1.0",
  185. "goober": "^2.0.33",
  186. "jest": "^26.6.3",
  187. "jest-esm-jsx-transform": "^1.0.0",
  188. "microbundle": "0.13.0",
  189. "parcel-bundler": "1.12.3",
  190. "parcel-plugin-css-to-string": "^2.5.2",
  191. "prettier": "^2.2.1",
  192. "react": "^17.0.2",
  193. "react-dom": "^17.0.2",
  194. "react-frame-component": "^5.1.0",
  195. "size-limit": "^4.10.1",
  196. "ts-jest": "^26.5.3",
  197. "typescript": "^4.2.3",
  198. "use-throttled-effect": "0.0.7"
  199. }
  200. }