package.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "name": "excalidraw",
  3. "homepage": "https://www.excalidraw.com",
  4. "version": "1.0.0",
  5. "description": "",
  6. "keywords": [],
  7. "main": "src/index.js",
  8. "dependencies": {
  9. "nanoid": "2.1.9",
  10. "react": "16.12.0",
  11. "react-dom": "16.12.0",
  12. "react-scripts": "3.3.0",
  13. "roughjs": "4.0.4"
  14. },
  15. "devDependencies": {
  16. "@types/jest": "24.9.0",
  17. "@types/nanoid": "2.1.0",
  18. "@types/react": "16.9.17",
  19. "@types/react-color": "3.0.1",
  20. "@types/react-dom": "16.9.4",
  21. "husky": "4.0.10",
  22. "lint-staged": "9.5.0",
  23. "node-sass": "4.13.1",
  24. "prettier": "1.19.1",
  25. "typescript": "3.7.5"
  26. },
  27. "scripts": {
  28. "build": "react-scripts build",
  29. "eject": "react-scripts eject",
  30. "fix": "npm run prettier -- --write",
  31. "prettier": "prettier \"**/*.{js,css,scss,json,md,ts,tsx,html,yml}\"",
  32. "start": "react-scripts start",
  33. "test:app": "react-scripts test --env=jsdom --passWithNoTests",
  34. "test:code": "npm run prettier -- --list-different",
  35. "test": "npm run test:code && npm run test:app"
  36. },
  37. "browserslist": [
  38. ">0.2%",
  39. "not dead",
  40. "not ie <= 11",
  41. "not op_mini all"
  42. ],
  43. "eslintConfig": {
  44. "extends": "react-app"
  45. },
  46. "husky": {
  47. "hooks": {
  48. "pre-commit": "lint-staged"
  49. }
  50. },
  51. "lint-staged": {
  52. "*.{js,css,scss,json,md,ts,tsx,html,yml}": [
  53. "prettier --write",
  54. "git add"
  55. ],
  56. "*.{js,ts,tsx}": [
  57. "eslint --max-warnings 0"
  58. ]
  59. }
  60. }