package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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.15.4",
  23. "@sentry/integrations": "5.15.4",
  24. "browser-nativefs": "0.7.1",
  25. "i18next-browser-languagedetector": "4.1.1",
  26. "nanoid": "2.1.11",
  27. "open-color": "1.7.0",
  28. "points-on-curve": "0.2.0",
  29. "pwacompat": "2.0.11",
  30. "react": "16.13.1",
  31. "react-dom": "16.13.1",
  32. "react-scripts": "3.4.1",
  33. "roughjs": "4.2.1",
  34. "socket.io-client": "2.3.0"
  35. },
  36. "devDependencies": {
  37. "@testing-library/jest-dom": "5.5.0",
  38. "@testing-library/react": "10.0.2",
  39. "@types/jest": "25.2.1",
  40. "@types/nanoid": "2.1.0",
  41. "@types/react": "16.9.34",
  42. "@types/react-dom": "16.9.6",
  43. "@types/socket.io-client": "1.4.32",
  44. "asar": "3.0.3",
  45. "eslint": "6.8.0",
  46. "eslint-config-prettier": "6.10.1",
  47. "eslint-plugin-prettier": "3.1.3",
  48. "husky": "4.2.5",
  49. "jest-canvas-mock": "2.2.0",
  50. "lint-staged": "10.1.6",
  51. "node-sass": "4.13.1",
  52. "pepjs": "0.5.2",
  53. "prettier": "2.0.4",
  54. "rewire": "5.0.0",
  55. "typescript": "3.8.3"
  56. },
  57. "engines": {
  58. "node": ">=12.0.0"
  59. },
  60. "eslintConfig": {
  61. "extends": [
  62. "prettier",
  63. "react-app"
  64. ],
  65. "plugins": [
  66. "prettier"
  67. ],
  68. "rules": {
  69. "curly": "warn",
  70. "no-console": [
  71. "warn",
  72. {
  73. "allow": [
  74. "warn",
  75. "error",
  76. "info"
  77. ]
  78. }
  79. ],
  80. "no-else-return": "warn",
  81. "no-useless-return": "warn",
  82. "prefer-const": [
  83. "warn",
  84. {
  85. "destructuring": "all"
  86. }
  87. ],
  88. "prefer-template": "warn",
  89. "prettier/prettier": "warn",
  90. "no-restricted-syntax": [
  91. "warn",
  92. {
  93. "selector": "JSXText[value=/\\w/]",
  94. "message": "Use 't(...)' instead of literal text in JSX"
  95. }
  96. ]
  97. }
  98. },
  99. "homepage": ".",
  100. "husky": {
  101. "hooks": {
  102. "pre-commit": "lint-staged"
  103. }
  104. },
  105. "jest": {
  106. "transformIgnorePatterns": [
  107. "node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-nativefs)/)"
  108. ]
  109. },
  110. "private": true,
  111. "scripts": {
  112. "build": "npm run build:app && npm run build:zip",
  113. "build-node": "node ./scripts/build-node.js",
  114. "build:app": "REACT_APP_GIT_SHA=$NOW_GITHUB_COMMIT_SHA react-scripts build",
  115. "build:zip": "node ./scripts/build-version.js",
  116. "eject": "react-scripts eject",
  117. "fix": "npm run fix:other && npm run fix:code",
  118. "fix:code": "npm run test:code -- --fix",
  119. "fix:other": "npm run prettier -- --write",
  120. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  121. "start": "react-scripts start",
  122. "test": "npm run test:app",
  123. "test:all": "npm run test:typecheck && npm run test:code && npm run test:other && npm run test:app -- --watchAll=false",
  124. "test:update": "npm run test:app -- --updateSnapshot --watchAll=false",
  125. "test:app": "react-scripts test --env=jsdom --passWithNoTests",
  126. "test:code": "eslint --max-warnings=0 --ignore-path .gitignore --ext .js,.ts,.tsx .",
  127. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  128. "test:other": "npm run prettier -- --list-different",
  129. "test:typecheck": "tsc"
  130. }
  131. }