package.json 4.1 KB

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