package.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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": "5.25.0",
  23. "@sentry/integrations": "5.26.0",
  24. "@testing-library/jest-dom": "5.11.4",
  25. "@testing-library/react": "11.0.4",
  26. "@types/jest": "26.0.14",
  27. "@types/nanoid": "2.1.0",
  28. "@types/react": "16.9.52",
  29. "@types/react-dom": "16.9.8",
  30. "@types/socket.io-client": "1.4.34",
  31. "browser-nativefs": "0.10.3",
  32. "firebase": "7.23.0",
  33. "i18next-browser-languagedetector": "6.0.1",
  34. "lodash.throttle": "4.1.1",
  35. "nanoid": "2.1.11",
  36. "node-sass": "4.14.1",
  37. "open-color": "1.7.0",
  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": "16.13.1",
  44. "react-dom": "16.13.1",
  45. "react-scripts": "3.4.3",
  46. "roughjs": "4.3.1",
  47. "socket.io-client": "2.3.1",
  48. "typescript": "3.9.7"
  49. },
  50. "devDependencies": {
  51. "@types/lodash.throttle": "4.1.6",
  52. "asar": "3.0.3",
  53. "eslint": "6.8.0",
  54. "eslint-config-prettier": "6.12.0",
  55. "eslint-plugin-prettier": "3.1.4",
  56. "firebase-tools": "8.12.1",
  57. "husky": "4.3.0",
  58. "jest-canvas-mock": "2.3.0",
  59. "lint-staged": "10.4.0",
  60. "pepjs": "0.5.2",
  61. "prettier": "2.1.2",
  62. "rewire": "5.0.0"
  63. },
  64. "engines": {
  65. "node": ">=12.0.0"
  66. },
  67. "homepage": ".",
  68. "husky": {
  69. "hooks": {
  70. "pre-commit": "lint-staged"
  71. }
  72. },
  73. "jest": {
  74. "transformIgnorePatterns": [
  75. "node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-nativefs)/)"
  76. ]
  77. },
  78. "name": "excalidraw",
  79. "private": true,
  80. "scripts": {
  81. "build-node": "node ./scripts/build-node.js",
  82. "build:app:docker": "REACT_APP_INCLUDE_GTAG=false REACT_APP_DISABLE_SENTRY=true react-scripts build",
  83. "build:app": "REACT_APP_INCLUDE_GTAG=true REACT_APP_GIT_SHA=$NOW_GITHUB_COMMIT_SHA react-scripts build",
  84. "build:zip": "node ./scripts/build-version.js",
  85. "build": "npm run build:app && npm run build:zip",
  86. "eject": "react-scripts eject",
  87. "fix:code": "npm run test:code -- --fix",
  88. "fix:other": "npm run prettier -- --write",
  89. "fix": "npm run fix:other && npm run fix:code",
  90. "locales-coverage": "node scripts/build-locales-coverage.js",
  91. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  92. "start": "react-scripts start",
  93. "test:all": "npm run test:typecheck && npm run test:code && npm run test:other && npm run test:app -- --watchAll=false",
  94. "test:app": "react-scripts test --env=jsdom-fourteen --passWithNoTests",
  95. "test:code": "eslint --max-warnings=0 --ignore-path .gitignore --ext .js,.ts,.tsx .",
  96. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  97. "test:other": "npm run prettier -- --list-different",
  98. "test:typecheck": "tsc",
  99. "test:update": "npm run test:app -- --updateSnapshot --watchAll=false",
  100. "test": "npm run test:app"
  101. }
  102. }