package.json 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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.17.0",
  23. "@sentry/integrations": "5.17.0",
  24. "@testing-library/jest-dom": "5.10.1",
  25. "@testing-library/react": "10.2.1",
  26. "@types/jest": "26.0.0",
  27. "@types/nanoid": "2.1.0",
  28. "@types/react": "16.9.36",
  29. "@types/react-dom": "16.9.8",
  30. "@types/socket.io-client": "1.4.33",
  31. "browser-nativefs": "0.8.2",
  32. "i18next-browser-languagedetector": "4.3.0",
  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.15",
  39. "react": "16.13.1",
  40. "react-dom": "16.13.1",
  41. "react-scripts": "3.4.1",
  42. "roughjs": "4.3.1",
  43. "socket.io-client": "2.3.0",
  44. "typescript": "3.9.5"
  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.2.5",
  53. "jest-canvas-mock": "2.2.0",
  54. "lint-staged": "10.2.10",
  55. "pepjs": "0.5.2",
  56. "prettier": "2.0.5",
  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. "private": true,
  74. "scripts": {
  75. "build": "npm run build:app && npm run build:zip",
  76. "build-node": "node ./scripts/build-node.js",
  77. "build:app": "REACT_APP_INCLUDE_GTAG=true REACT_APP_GIT_SHA=$NOW_GITHUB_COMMIT_SHA react-scripts build",
  78. "build:app:docker": "REACT_APP_INCLUDE_GTAG=false REACT_APP_DISABLE_SENTRY=true react-scripts build",
  79. "build:zip": "node ./scripts/build-version.js",
  80. "eject": "react-scripts eject",
  81. "fix": "npm run fix:other && npm run fix:code",
  82. "fix:code": "npm run test:code -- --fix",
  83. "fix:other": "npm run prettier -- --write",
  84. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  85. "start": "react-scripts start",
  86. "test": "npm run test:app",
  87. "test:all": "npm run test:typecheck && npm run test:code && npm run test:other && npm run test:app -- --watchAll=false",
  88. "test:update": "npm run test:app -- --updateSnapshot --watchAll=false",
  89. "test:app": "react-scripts test --env=jsdom --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. }
  95. }