package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "name": "仓储物流管理系统",
  3. "version": "1.0.0",
  4. "type": "module",
  5. "private": true,
  6. "description": "An out of the box react webpack template,It is simpler, more convenient to customize and more modular on the basis of create-react-app.",
  7. "author": "xyhxx (603331487@qq.com)",
  8. "license": "MIT",
  9. "pnpm": {
  10. "peerDependencyRules": {
  11. "ignoreMissing": [
  12. "eslint",
  13. "typescript",
  14. "postcss",
  15. "jest"
  16. ]
  17. }
  18. },
  19. "scripts": {
  20. "dev": "pnpm -F app dev",
  21. "dev:e2e": "pnpm -F app e2e",
  22. "build": "pnpm -F app build",
  23. "test": "pnpm -F app test",
  24. "test:watch": "pnpm -F app test:watch",
  25. "test:coverage": "pnpm -F app test:coverage",
  26. "cypress": "cypress open",
  27. "cypress:run": "cypress run -b chrome",
  28. "lint:style": "stylelint packages/app/src *.*.css",
  29. "lint:js": "eslint . --ext .js,.jsx,.ts,.tsx",
  30. "lint:style-fix": "pnpm run lint:style --fix",
  31. "lint:js-fix": "pnpm run lint:js --fix",
  32. "prettier": "prettier -c --write **/*",
  33. "prepare": "husky install",
  34. "postinstall": "husky install",
  35. "pre-commit": "lint-staged"
  36. },
  37. "devDependencies": {
  38. "@commitlint/cli": "^17.5.1",
  39. "@commitlint/config-conventional": "^17.4.4",
  40. "@types/jest": "^29.2.5",
  41. "@types/node": "^18.11.18",
  42. "@typescript-eslint/eslint-plugin": "^5.46.1",
  43. "@typescript-eslint/parser": "^5.46.1",
  44. "commitizen": "^4.3.0",
  45. "cz-conventional-changelog": "^3.3.0",
  46. "eslint": "^8.29.0",
  47. "eslint-config-proste": "^7.4.0",
  48. "eslint-plugin-cypress": "^2.12.1",
  49. "eslint-plugin-import": "^2.27.5",
  50. "eslint-plugin-import-newlines": "^1.3.1",
  51. "eslint-plugin-jest": "^27.1.6",
  52. "eslint-plugin-react": "^7.32.2",
  53. "eslint-plugin-react-hooks": "^4.6.0",
  54. "husky": "^8.0.3",
  55. "ip": "^1.1.8",
  56. "jest": "^29.3.1",
  57. "lint-staged": "^13.2.1",
  58. "postcss": "^8.4.19",
  59. "stylelint": "^15.3.0",
  60. "stylelint-config-recess-order": "^4.0.0",
  61. "stylelint-config-standard": "^31.0.0",
  62. "typescript": "^4.9.4"
  63. },
  64. "dependencies": {
  65. "cypress": "^12.5.1"
  66. },
  67. "config": {
  68. "commitizen": {
  69. "path": "./node_modules/cz-conventional-changelog",
  70. "types": {
  71. "feat": {
  72. "description": "A new feature",
  73. "title": "Features"
  74. },
  75. "fix": {
  76. "description": "A bug fix",
  77. "title": "Bug Fixes"
  78. },
  79. "update": {
  80. "description": "Modify src files",
  81. "title": "Updates"
  82. },
  83. "chore": {
  84. "description": "Other changes that don't modify src or test files",
  85. "title": "Chores"
  86. },
  87. "test": {
  88. "description": "Adding missing tests or correcting existing tests",
  89. "title": "Tests"
  90. },
  91. "style": {
  92. "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
  93. "title": "Styles"
  94. },
  95. "refactor": {
  96. "description": "A code change that neither fixes a bug nor adds a feature",
  97. "title": "Code Refactoring"
  98. },
  99. "perf": {
  100. "description": "A code change that improves performance",
  101. "title": "Performance Improvements"
  102. },
  103. "revert": {
  104. "description": "Reverts a previous commit",
  105. "title": "Reverts"
  106. },
  107. "merge": {
  108. "description": "Merge a branch",
  109. "title": "Merges"
  110. }
  111. }
  112. }
  113. },
  114. "lint-staged": {
  115. "**/*/*.css": [
  116. "stylelint"
  117. ],
  118. "**/*/*.{js,jsx,ts,tsx}": [
  119. "eslint"
  120. ]
  121. }
  122. }