package.json 3.1 KB

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