版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

108 строки
3.3 KiB

  1. {
  2. "name": "vue-request",
  3. "version": "1.2.4",
  4. "description": "Vue 3 composition API for data fetching, supports SWR, polling, error retry, cache request, pagination and other cool features.",
  5. "keywords": [
  6. "vue",
  7. "vue3",
  8. "swr",
  9. "request",
  10. "http",
  11. "fetch",
  12. "composition-api",
  13. "axios",
  14. "vue-request",
  15. "vue request"
  16. ],
  17. "homepage": "https://www.attojs.org",
  18. "bugs": "https://github.com/attojs/vue-request/issues",
  19. "repository": {
  20. "type": "git",
  21. "url": "https://github.com/attojs/vue-request.git"
  22. },
  23. "license": "MIT",
  24. "main": "dist/index.cjs.js",
  25. "unpkg": "dist/vue-request.min.js",
  26. "module": "dist/index.es.js",
  27. "types": "dist/types/index.d.ts",
  28. "files": [
  29. "dist/**"
  30. ],
  31. "scripts": {
  32. "build": "yarn clean && rollup --config ./build/rollup.config.js",
  33. "dev": "yarn vite ./example",
  34. "clean": "rimraf dist/*",
  35. "test": "jest --coverage",
  36. "publishing": "np",
  37. "changelog": "standard-version && standard-version -i CHANGELOG.zh-CN.md -o CHANGELOG.zh-CN.md",
  38. "release": "yarn build && yarn publishing",
  39. "lint": "eslint -c ./.eslintrc.js './{src,scripts,build}/**/*.{js,ts,tsx}'",
  40. "format": "prettier -w '**/*.ts?(x)'",
  41. "vite": "vite --config ./build/vite.config.ts"
  42. },
  43. "husky": {
  44. "hooks": {
  45. "pre-commit": "node ./scripts/preCommit.js && lint-staged",
  46. "commit-msg": "commitlint -x @commitlint/config-conventional -e $HUSKY_GIT_PARAMS",
  47. "pre-push": "yarn test --coverage=false"
  48. }
  49. },
  50. "lint-staged": {
  51. "*.{js,jsx,ts,tsx}": [
  52. "eslint --fix"
  53. ],
  54. "package.json": "sort-package-json"
  55. },
  56. "devDependencies": {
  57. "@babel/core": "^7.12.3",
  58. "@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5",
  59. "@babel/plugin-transform-runtime": "^7.12.1",
  60. "@babel/preset-env": "^7.12.1",
  61. "@babel/runtime-corejs3": "^7.12.5",
  62. "@commitlint/cli": "^11.0.0",
  63. "@commitlint/config-conventional": "^11.0.0",
  64. "@rollup/plugin-babel": "^5.2.1",
  65. "@rollup/plugin-commonjs": "^16.0.0",
  66. "@rollup/plugin-node-resolve": "^10.0.0",
  67. "@types/jest": "^26.0.15",
  68. "@types/mockjs": "^1.0.3",
  69. "@typescript-eslint/eslint-plugin": "^4.8.2",
  70. "@typescript-eslint/parser": "^4.8.2",
  71. "@vitejs/plugin-vue": "^1.2.1",
  72. "@vitejs/plugin-vue-jsx": "^1.1.3",
  73. "@vue/babel-plugin-jsx": "^1.0.0-rc.3",
  74. "@vue/compiler-sfc": "^3.0.6",
  75. "@vue/test-utils": "^2.0.0-beta.8",
  76. "axios": "^0.21.1",
  77. "babel-jest": "^26.6.0",
  78. "eslint": "^7.14.0",
  79. "eslint-config-prettier": "^6.15.0",
  80. "eslint-plugin-prettier": "^3.1.4",
  81. "eslint-plugin-simple-import-sort": "^7.0.0",
  82. "eslint-plugin-vue": "^7.0.0-0",
  83. "fetch-mock": "^9.10.7",
  84. "husky": "^4.3.0",
  85. "jest": "^26.6.0",
  86. "jest-environment-jsdom-global": "^2.0.4",
  87. "lint-staged": "^10.5.2",
  88. "mockjs": "^1.1.0",
  89. "node-fetch": "^2.6.1",
  90. "np": "^7.0.0",
  91. "prettier": "^2.2.0",
  92. "rimraf": "^3.0.2",
  93. "rollup": "^2.33.1",
  94. "rollup-plugin-terser": "^7.0.2",
  95. "rollup-plugin-typescript2": "^0.29.0",
  96. "simple-git": "^2.21.0",
  97. "sort-package-json": "^1.50.0",
  98. "standard-version": "^9.1.1",
  99. "ts-jest": "^26.4.1",
  100. "typescript": "^4.0.5",
  101. "vite": "^2.1.5",
  102. "vue": "^3.0.2"
  103. },
  104. "peerDependencies": {
  105. "vue": "^3.0.0"
  106. }
  107. }