package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "browserslist": {
  3. "production": [
  4. ">0.2%",
  5. "not dead",
  6. "not ie <= 11",
  7. "not op_mini all",
  8. "not safari < 12",
  9. "not kaios <= 2.5",
  10. "not edge < 79",
  11. "not chrome < 70",
  12. "not and_uc < 13",
  13. "not samsung < 10"
  14. ],
  15. "development": [
  16. "last 1 chrome version",
  17. "last 1 firefox version",
  18. "last 1 safari version"
  19. ]
  20. },
  21. "dependencies": {
  22. "@sentry/browser": "6.2.5",
  23. "@sentry/integrations": "6.2.1",
  24. "@testing-library/jest-dom": "5.11.10",
  25. "@testing-library/react": "11.2.5",
  26. "@types/jest": "26.0.22",
  27. "@types/react": "17.0.3",
  28. "@types/react-dom": "17.0.2",
  29. "@types/socket.io-client": "1.4.36",
  30. "browser-fs-access": "0.16.2",
  31. "clsx": "1.1.1",
  32. "firebase": "8.2.10",
  33. "i18next-browser-languagedetector": "6.0.1",
  34. "lodash.throttle": "4.1.1",
  35. "nanoid": "3.1.22",
  36. "open-color": "1.8.0",
  37. "pako": "1.0.11",
  38. "png-chunk-text": "1.0.0",
  39. "png-chunks-encode": "1.0.0",
  40. "png-chunks-extract": "1.0.0",
  41. "points-on-curve": "0.2.0",
  42. "pwacompat": "2.0.17",
  43. "react": "17.0.2",
  44. "react-dom": "17.0.2",
  45. "react-scripts": "4.0.3",
  46. "roughjs": "4.3.1",
  47. "sass": "1.32.8",
  48. "socket.io-client": "2.3.1",
  49. "typescript": "4.2.3"
  50. },
  51. "devDependencies": {
  52. "@excalidraw/eslint-config": "1.0.0",
  53. "@excalidraw/prettier-config": "1.0.2",
  54. "@types/lodash.throttle": "4.1.6",
  55. "@types/pako": "1.0.1",
  56. "@types/resize-observer-browser": "0.1.5",
  57. "eslint-config-prettier": "8.1.0",
  58. "eslint-plugin-prettier": "3.3.1",
  59. "firebase-tools": "9.6.1",
  60. "husky": "4.3.8",
  61. "jest-canvas-mock": "2.3.1",
  62. "lint-staged": "10.5.4",
  63. "pepjs": "0.5.3",
  64. "prettier": "2.2.1",
  65. "rewire": "5.0.0"
  66. },
  67. "engines": {
  68. "node": ">=14.0.0"
  69. },
  70. "homepage": ".",
  71. "husky": {
  72. "hooks": {
  73. "pre-commit": "lint-staged"
  74. }
  75. },
  76. "jest": {
  77. "transformIgnorePatterns": [
  78. "node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-fs-access)/)"
  79. ],
  80. "resetMocks": false
  81. },
  82. "name": "excalidraw",
  83. "prettier": "@excalidraw/prettier-config",
  84. "private": true,
  85. "scripts": {
  86. "build-node": "node ./scripts/build-node.js",
  87. "build:app:docker": "REACT_APP_DISABLE_SENTRY=true react-scripts build",
  88. "build:app": "REACT_APP_GIT_SHA=$VERCEL_GIT_COMMIT_SHA react-scripts build",
  89. "build:version": "node ./scripts/build-version.js",
  90. "build": "yarn build:app && yarn build:version",
  91. "eject": "react-scripts eject",
  92. "fix:code": "yarn test:code --fix",
  93. "fix:other": "yarn prettier --write",
  94. "fix": "yarn fix:other && yarn fix:code",
  95. "locales-coverage": "node scripts/build-locales-coverage.js",
  96. "locales-coverage:description": "node scripts/locales-coverage-description.js",
  97. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  98. "start": "react-scripts start",
  99. "test:all": "yarn test:typecheck && yarn test:code && yarn test:other && yarn test:app --watchAll=false",
  100. "test:app": "react-scripts test --passWithNoTests",
  101. "test:code": "eslint --max-warnings=0 --ext .js,.ts,.tsx .",
  102. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  103. "test:other": "yarn prettier --list-different",
  104. "test:typecheck": "tsc",
  105. "test:update": "yarn test:app --updateSnapshot --watchAll=false",
  106. "test": "yarn test:app"
  107. }
  108. }