package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. "name": "koa-redis",
  3. "description": "Redis storage for Koa session middleware/cache with Sentinel and Cluster support",
  4. "version": "4.0.1",
  5. "author": "dead_horse <dead_horse@qq.com>",
  6. "bugs": {
  7. "url": "https://github.com/koajs/koa-redis/issues"
  8. },
  9. "commitlint": {
  10. "extends": [
  11. "@commitlint/config-conventional"
  12. ]
  13. },
  14. "contributors": [
  15. "dead_horse <dead_horse@qq.com>",
  16. "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)"
  17. ],
  18. "dependencies": {
  19. "@babel/runtime": "^7.8.3",
  20. "co-wrap-all": "^1.0.0",
  21. "debug": "^4.1.1",
  22. "ioredis": "^4.14.1"
  23. },
  24. "devDependencies": {
  25. "@babel/cli": "^7.8.3",
  26. "@babel/core": "^7.8.3",
  27. "@babel/plugin-transform-runtime": "^7.8.3",
  28. "@babel/preset-env": "^7.8.3",
  29. "@commitlint/cli": "^8.3.5",
  30. "@commitlint/config-conventional": "^8.3.4",
  31. "autod": "^3.1.0",
  32. "co-mocha": "^1.2.2",
  33. "connect": "^3.7.0",
  34. "connect-redis": "^4.0.3",
  35. "eslint": "^6.8.0",
  36. "eslint-config-xo-lass": "^1.0.3",
  37. "eslint-plugin-node": "^11.0.0",
  38. "fixpack": "^2.3.1",
  39. "husky": "3.x",
  40. "istanbul": "^0.4.5",
  41. "koa": "^2.11.0",
  42. "koa-generic-session": "^2.0.4",
  43. "lint-staged": "^9.5.0",
  44. "mocha": "3.x",
  45. "remark-cli": "^7.0.1",
  46. "remark-preset-github": "^0.0.16",
  47. "rimraf": "^3.0.0",
  48. "should": "^13.2.3",
  49. "xo": "^0.25.3"
  50. },
  51. "engines": {
  52. "node": ">= 4"
  53. },
  54. "files": [
  55. "lib"
  56. ],
  57. "homepage": "https://github.com/koajs/koa-redis",
  58. "husky": {
  59. "hooks": {
  60. "pre-commit": "npm test",
  61. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  62. }
  63. },
  64. "keywords": [
  65. "cache",
  66. "caching",
  67. "client",
  68. "clients",
  69. "cluster",
  70. "clustering",
  71. "clusters",
  72. "express",
  73. "ioredis",
  74. "koa",
  75. "middleware",
  76. "multiple",
  77. "node",
  78. "nodes",
  79. "redis",
  80. "scale",
  81. "sentinal",
  82. "sentinals",
  83. "sentinel",
  84. "sentinels",
  85. "session",
  86. "storage",
  87. "store"
  88. ],
  89. "license": "MIT",
  90. "lint-staged": {
  91. "linters": {
  92. "*.js": [
  93. "xo --fix",
  94. "git add"
  95. ],
  96. "*.md": [
  97. "remark . -qfo",
  98. "git add"
  99. ],
  100. "package.json": [
  101. "fixpack",
  102. "git add"
  103. ]
  104. }
  105. },
  106. "main": "lib/index.js",
  107. "prettier": {
  108. "singleQuote": true,
  109. "bracketSpacing": true,
  110. "trailingComma": "none"
  111. },
  112. "remarkConfig": {
  113. "plugins": [
  114. "preset-github"
  115. ]
  116. },
  117. "repository": "koajs/koa-redis",
  118. "scripts": {
  119. "autod": "autod -w --prefix=^ --keep=koa -D co-mocha,mocha,istanbul,autod",
  120. "build": "npm run build:clean && npm run build:lib",
  121. "build:clean": "rimraf lib",
  122. "build:lib": "babel src --out-dir lib",
  123. "lint": "xo && remark . -qfo && eslint lib",
  124. "test": "npm run build && npm run lint && istanbul cover node_modules/mocha/bin/_mocha -- --require co-mocha \"test/**/*.test.js\"",
  125. "test-only": "mocha --require co-mocha \"test/**/*.test.js\""
  126. },
  127. "xo": {
  128. "prettier": true,
  129. "space": true,
  130. "extends": [
  131. "xo-lass"
  132. ],
  133. "overrides": [
  134. {
  135. "files": "test/**/*.js",
  136. "envs": [
  137. "mocha"
  138. ]
  139. }
  140. ]
  141. }
  142. }