package.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "name": "rwt",
  3. "version": "1.0.0",
  4. "private": true,
  5. "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.",
  6. "author": "xyhxx (603331487@qq.com)",
  7. "license": "MIT",
  8. "pnpm": {
  9. "peerDependencyRules": {
  10. "ignoreMissing": [
  11. "eslint",
  12. "typescript",
  13. "postcss"
  14. ]
  15. }
  16. },
  17. "scripts": {
  18. "dev": "pnpm -F app dev",
  19. "dev:e2e": "pnpm -F app e2e",
  20. "build": "pnpm -F app build",
  21. "test": "pnpm -F app test",
  22. "test:coverage": "pnpm -F app test:coverage",
  23. "cypress:run": "cypress run -b chrome",
  24. "cypress": "cypress open",
  25. "lint:style": "stylelint packages/app/src *.*.css",
  26. "lint:js": "eslint . --ext .js,.jsx,.ts,.tsx",
  27. "lint:style-fix": "pnpm run lint:style --fix",
  28. "lint:js-fix": "pnpm run lint:js --fix",
  29. "prepare": "husky install",
  30. "postinstall": "husky install",
  31. "pre-commit": "lint-staged",
  32. "release": "standard-version",
  33. "release:major": "standard-version --release-as major",
  34. "release:minor": "standard-version --release-as minor",
  35. "release:patch": "standard-version --release-as patch",
  36. "commit": "cz"
  37. },
  38. "browserslist": {
  39. "production": [
  40. ">= 0.5%",
  41. "not dead",
  42. "not op_mini all",
  43. "not ie <= 11"
  44. ],
  45. "development": [
  46. "last 1 chrome version",
  47. "last 1 firefox version",
  48. "last 1 safari version"
  49. ]
  50. },
  51. "config": {
  52. "commitizen": {
  53. "path": "./node_modules/cz-conventional-changelog",
  54. "types": {
  55. "feat": {
  56. "description": "A new feature",
  57. "title": "Features"
  58. },
  59. "fix": {
  60. "description": "A bug fix",
  61. "title": "Bug Fixes"
  62. },
  63. "update": {
  64. "description": "Modify src files",
  65. "title": "Updates"
  66. },
  67. "chore": {
  68. "description": "Other changes that don't modify src or test files",
  69. "title": "Chores"
  70. },
  71. "test": {
  72. "description": "Adding missing tests or correcting existing tests",
  73. "title": "Tests"
  74. },
  75. "style": {
  76. "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
  77. "title": "Styles"
  78. },
  79. "refactor": {
  80. "description": "A code change that neither fixes a bug nor adds a feature",
  81. "title": "Code Refactoring"
  82. },
  83. "perf": {
  84. "description": "A code change that improves performance",
  85. "title": "Performance Improvements"
  86. },
  87. "revert": {
  88. "description": "Reverts a previous commit",
  89. "title": "Reverts"
  90. },
  91. "merge": {
  92. "description": "Merge branch",
  93. "title": "Merges"
  94. }
  95. }
  96. }
  97. },
  98. "lint-staged": {
  99. "**/*/*.css": [
  100. "stylelint"
  101. ],
  102. "**/*/*.{js,jsx,ts,tsx}": [
  103. "eslint"
  104. ]
  105. },
  106. "devDependencies": {
  107. "@commitlint/cli": "^17.6.1",
  108. "@commitlint/config-conventional": "^17.6.1",
  109. "@swc/helpers": "^0.5.1",
  110. "@total-typescript/ts-reset": "^0.4.2",
  111. "@types/node": "^18.15.11",
  112. "@typescript-eslint/eslint-plugin": "^5.58.0",
  113. "@typescript-eslint/parser": "^5.58.0",
  114. "@vitest/coverage-c8": "^0.31.0",
  115. "commitizen": "^4.3.0",
  116. "core-js": "^3.30.1",
  117. "cross-env": "^7.0.3",
  118. "cypress": "^12.9.0",
  119. "cz-conventional-changelog": "^3.3.0",
  120. "editorconfig": "^1.0.2",
  121. "eslint": "^8.38.0",
  122. "eslint-config-proste": "^7.4.0",
  123. "eslint-plugin-cypress": "^2.13.2",
  124. "eslint-plugin-import": "^2.27.5",
  125. "eslint-plugin-import-newlines": "^1.3.1",
  126. "eslint-plugin-react": "^7.32.2",
  127. "eslint-plugin-react-hooks": "^4.6.0",
  128. "husky": "^8.0.3",
  129. "ip": "^1.1.8",
  130. "jsdom": "^22.0.0",
  131. "lint-staged": "^13.2.1",
  132. "postcss": "^8.4.21",
  133. "standard-version": "^9.5.0",
  134. "stylelint": "^15.5.0",
  135. "stylelint-config-recess-order": "^4.0.0",
  136. "stylelint-config-standard": "^33.0.0",
  137. "ts-node": "^10.9.1",
  138. "typescript": "^5.0.4",
  139. "vitest": "^0.31.0"
  140. }
  141. }