package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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.0",
  23. "@sentry/integrations": "6.2.0",
  24. "@testing-library/jest-dom": "5.11.9",
  25. "@testing-library/react": "11.2.5",
  26. "@types/jest": "26.0.20",
  27. "@types/react": "17.0.2",
  28. "@types/react-dom": "17.0.1",
  29. "@types/socket.io-client": "1.4.35",
  30. "browser-fs-access": "0.13.1",
  31. "clsx": "1.1.1",
  32. "firebase": "8.2.9",
  33. "i18next-browser-languagedetector": "6.0.1",
  34. "lodash.throttle": "4.1.1",
  35. "nanoid": "3.1.20",
  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.1",
  44. "react-dom": "17.0.1",
  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.1.5"
  50. },
  51. "devDependencies": {
  52. "@excalidraw/prettier-config": "1.0.2",
  53. "@types/lodash.throttle": "4.1.6",
  54. "@types/pako": "1.0.1",
  55. "@types/resize-observer-browser": "0.1.5",
  56. "eslint-config-prettier": "8.1.0",
  57. "eslint-plugin-prettier": "3.3.1",
  58. "firebase-tools": "9.5.0",
  59. "husky": "4.3.8",
  60. "jest-canvas-mock": "2.3.1",
  61. "lint-staged": "10.5.4",
  62. "pepjs": "0.5.3",
  63. "prettier": "2.2.1",
  64. "rewire": "5.0.0"
  65. },
  66. "engines": {
  67. "node": ">=14.0.0"
  68. },
  69. "homepage": ".",
  70. "husky": {
  71. "hooks": {
  72. "pre-commit": "lint-staged"
  73. }
  74. },
  75. "jest": {
  76. "transformIgnorePatterns": [
  77. "node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-fs-access)/)"
  78. ],
  79. "resetMocks": false
  80. },
  81. "name": "excalidraw",
  82. "prettier": "@excalidraw/prettier-config",
  83. "private": true,
  84. "scripts": {
  85. "build-node": "node ./scripts/build-node.js",
  86. "build:app:docker": "REACT_APP_DISABLE_SENTRY=true react-scripts build",
  87. "build:app": "REACT_APP_GIT_SHA=$VERCEL_GIT_COMMIT_SHA react-scripts build",
  88. "build:version": "node ./scripts/build-version.js",
  89. "build": "yarn build:app && yarn build:version",
  90. "eject": "react-scripts eject",
  91. "fix:code": "yarn test:code --fix",
  92. "fix:other": "yarn prettier --write",
  93. "fix": "yarn fix:other && yarn fix:code",
  94. "locales-coverage": "node scripts/build-locales-coverage.js",
  95. "locales-coverage:description": "node scripts/locales-coverage-description.js",
  96. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  97. "start": "react-scripts start",
  98. "test:all": "yarn test:typecheck && yarn test:code && yarn test:other && yarn test:app --watchAll=false",
  99. "test:app": "react-scripts test --passWithNoTests",
  100. "test:code": "eslint --max-warnings=0 --ignore-path .gitignore --ext .js,.ts,.tsx .",
  101. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  102. "test:other": "yarn prettier --list-different",
  103. "test:typecheck": "tsc",
  104. "test:update": "yarn test:app --updateSnapshot --watchAll=false",
  105. "test": "yarn test:app"
  106. }
  107. }