package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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.5",
  24. "@testing-library/jest-dom": "5.14.1",
  25. "@testing-library/react": "11.2.6",
  26. "@tldraw/vec": "0.0.106",
  27. "@types/jest": "26.0.22",
  28. "@types/pica": "5.1.3",
  29. "@types/react": "17.0.3",
  30. "@types/react-dom": "17.0.10",
  31. "@types/socket.io-client": "1.4.36",
  32. "browser-fs-access": "0.21.0",
  33. "clsx": "1.1.1",
  34. "fake-indexeddb": "3.1.3",
  35. "firebase": "8.3.3",
  36. "i18next-browser-languagedetector": "6.1.0",
  37. "idb-keyval": "5.1.3",
  38. "image-blob-reduce": "3.0.1",
  39. "lodash.throttle": "4.1.1",
  40. "nanoid": "3.1.22",
  41. "open-color": "1.8.0",
  42. "pako": "1.0.11",
  43. "perfect-freehand": "1.0.15",
  44. "png-chunk-text": "1.0.0",
  45. "png-chunks-encode": "1.0.0",
  46. "png-chunks-extract": "1.0.0",
  47. "points-on-curve": "0.2.0",
  48. "pwacompat": "2.0.17",
  49. "react": "17.0.2",
  50. "react-dom": "17.0.2",
  51. "react-scripts": "4.0.3",
  52. "roughjs": "4.4.1",
  53. "sass": "1.32.10",
  54. "socket.io-client": "2.3.1",
  55. "typescript": "4.2.4"
  56. },
  57. "devDependencies": {
  58. "@excalidraw/eslint-config": "1.0.0",
  59. "@excalidraw/prettier-config": "1.0.2",
  60. "@types/chai": "4.2.22",
  61. "@types/lodash.throttle": "4.1.6",
  62. "@types/pako": "1.0.1",
  63. "@types/resize-observer-browser": "0.1.5",
  64. "chai": "4.3.4",
  65. "eslint-config-prettier": "8.3.0",
  66. "eslint-plugin-prettier": "3.3.1",
  67. "firebase-tools": "9.9.0",
  68. "husky": "7.0.4",
  69. "jest-canvas-mock": "2.3.1",
  70. "lint-staged": "11.2.6",
  71. "pepjs": "0.5.3",
  72. "prettier": "2.2.1",
  73. "rewire": "5.0.0"
  74. },
  75. "engines": {
  76. "node": ">=14.0.0"
  77. },
  78. "homepage": ".",
  79. "jest": {
  80. "transformIgnorePatterns": [
  81. "node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-fs-access)/)"
  82. ],
  83. "resetMocks": false
  84. },
  85. "name": "excalidraw",
  86. "prettier": "@excalidraw/prettier-config",
  87. "private": true,
  88. "scripts": {
  89. "build-node": "node ./scripts/build-node.js",
  90. "build:app:docker": "REACT_APP_DISABLE_SENTRY=true react-scripts build",
  91. "build:app": "REACT_APP_GIT_SHA=$VERCEL_GIT_COMMIT_SHA react-scripts build",
  92. "build:version": "node ./scripts/build-version.js",
  93. "build": "yarn build:app && yarn build:version",
  94. "eject": "react-scripts eject",
  95. "fix:code": "yarn test:code --fix",
  96. "fix:other": "yarn prettier --write",
  97. "fix": "yarn fix:other && yarn fix:code",
  98. "locales-coverage": "node scripts/build-locales-coverage.js",
  99. "locales-coverage:description": "node scripts/locales-coverage-description.js",
  100. "prepare": "husky install",
  101. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  102. "start": "react-scripts start",
  103. "test:all": "yarn test:typecheck && yarn test:code && yarn test:other && yarn test:app --watchAll=false",
  104. "test:app": "react-scripts test --passWithNoTests",
  105. "test:code": "eslint --max-warnings=0 --ext .js,.ts,.tsx .",
  106. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  107. "test:other": "yarn prettier --list-different",
  108. "test:typecheck": "tsc",
  109. "test:update": "yarn test:app --updateSnapshot --watchAll=false",
  110. "test": "yarn test:app",
  111. "autorelease": "node scripts/autorelease.js"
  112. }
  113. }