package.json 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.5",
  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.11.0",
  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.14.0",
  52. "pepjs": "0.5.2",
  53. "prettier": "2.0.5",
  54. "rewire": "5.0.0",
  55. "typescript": "3.8.3"
  56. },
  57. "engines": {
  58. "node": ">=12.0.0"
  59. },
  60. "homepage": ".",
  61. "husky": {
  62. "hooks": {
  63. "pre-commit": "lint-staged"
  64. }
  65. },
  66. "jest": {
  67. "transformIgnorePatterns": [
  68. "node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-nativefs)/)"
  69. ]
  70. },
  71. "private": true,
  72. "scripts": {
  73. "build": "npm run build:app && npm run build:zip",
  74. "build-node": "node ./scripts/build-node.js",
  75. "build:app": "REACT_APP_GIT_SHA=$NOW_GITHUB_COMMIT_SHA react-scripts build",
  76. "build:zip": "node ./scripts/build-version.js",
  77. "eject": "react-scripts eject",
  78. "fix": "npm run fix:other && npm run fix:code",
  79. "fix:code": "npm run test:code -- --fix",
  80. "fix:other": "npm run prettier -- --write",
  81. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  82. "start": "react-scripts start",
  83. "test": "npm run test:app",
  84. "test:all": "npm run test:typecheck && npm run test:code && npm run test:other && npm run test:app -- --watchAll=false",
  85. "test:update": "npm run test:app -- --updateSnapshot --watchAll=false",
  86. "test:app": "react-scripts test --env=jsdom --passWithNoTests",
  87. "test:code": "eslint --max-warnings=0 --ignore-path .gitignore --ext .js,.ts,.tsx .",
  88. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  89. "test:other": "npm run prettier -- --list-different",
  90. "test:typecheck": "tsc"
  91. }
  92. }