package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. "points-on-curve": "0.2.0",
  39. "pwacompat": "2.0.17",
  40. "react": "16.13.1",
  41. "react-dom": "16.13.1",
  42. "react-scripts": "3.4.3",
  43. "roughjs": "4.3.1",
  44. "socket.io-client": "2.3.1",
  45. "typescript": "3.9.7"
  46. },
  47. "devDependencies": {
  48. "@types/lodash.throttle": "4.1.6",
  49. "asar": "3.0.3",
  50. "eslint": "6.8.0",
  51. "eslint-config-prettier": "6.12.0",
  52. "eslint-plugin-prettier": "3.1.4",
  53. "firebase-tools": "8.12.1",
  54. "husky": "4.3.0",
  55. "jest-canvas-mock": "2.3.0",
  56. "lint-staged": "10.4.0",
  57. "pepjs": "0.5.2",
  58. "prettier": "2.1.2",
  59. "rewire": "5.0.0"
  60. },
  61. "engines": {
  62. "node": ">=12.0.0"
  63. },
  64. "homepage": ".",
  65. "husky": {
  66. "hooks": {
  67. "pre-commit": "lint-staged"
  68. }
  69. },
  70. "jest": {
  71. "transformIgnorePatterns": [
  72. "node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-nativefs)/)"
  73. ]
  74. },
  75. "name": "excalidraw",
  76. "private": true,
  77. "scripts": {
  78. "build-node": "node ./scripts/build-node.js",
  79. "build:app:docker": "REACT_APP_INCLUDE_GTAG=false REACT_APP_DISABLE_SENTRY=true react-scripts build",
  80. "build:app": "REACT_APP_INCLUDE_GTAG=true REACT_APP_GIT_SHA=$NOW_GITHUB_COMMIT_SHA react-scripts build",
  81. "build:zip": "node ./scripts/build-version.js",
  82. "build": "npm run build:app && npm run build:zip",
  83. "eject": "react-scripts eject",
  84. "fix:code": "npm run test:code -- --fix",
  85. "fix:other": "npm run prettier -- --write",
  86. "fix": "npm run fix:other && npm run fix:code",
  87. "locales-coverage": "node scripts/build-locales-coverage.js",
  88. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  89. "start": "react-scripts start",
  90. "test:all": "npm run test:typecheck && npm run test:code && npm run test:other && npm run test:app -- --watchAll=false",
  91. "test:app": "react-scripts test --env=jsdom-fourteen --passWithNoTests",
  92. "test:code": "eslint --max-warnings=0 --ignore-path .gitignore --ext .js,.ts,.tsx .",
  93. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  94. "test:other": "npm run prettier -- --list-different",
  95. "test:typecheck": "tsc",
  96. "test:update": "npm run test:app -- --updateSnapshot --watchAll=false",
  97. "test": "npm run test:app"
  98. }
  99. }