package.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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:script --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. "eslint": "^8.29.0",
  45. "eslint-config-prettier": "^8.8.0",
  46. "eslint-config-proste": "^5.0.0",
  47. "eslint-plugin-cypress": "^2.12.1",
  48. "eslint-plugin-import": "^2.27.5",
  49. "eslint-plugin-import-newlines": "^1.3.0",
  50. "eslint-plugin-jest": "^27.1.6",
  51. "eslint-plugin-react": "^7.32.2",
  52. "eslint-plugin-react-hooks": "^4.6.0",
  53. "husky": "^8.0.3",
  54. "ip": "^1.1.8",
  55. "jest": "^29.3.1",
  56. "lint-staged": "^13.2.1",
  57. "postcss": "^8.4.19",
  58. "prettier": "^2.8.6",
  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. "lint-staged": {
  68. "**/*/*.css": [
  69. "pnpm lint:style",
  70. "prettier --write"
  71. ],
  72. "**/*/*.{js,jsx,ts,tsx}": [
  73. "pnpm lint:js",
  74. "prettier --write"
  75. ]
  76. }
  77. }