package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "name": "gateway",
  3. "version": "1.0.0",
  4. "author": {
  5. "email": "zsqmengzhihen@163.com",
  6. "name": "zhusiqng",
  7. "url": "http://git.zsqlm.cn/siqing/gateway_koa_ts"
  8. },
  9. "private": true,
  10. "engines": {
  11. "node": ">=14.0.0 <15.0.0"
  12. },
  13. "keywords": [
  14. "node",
  15. "koa",
  16. "redis",
  17. "typescript"
  18. ],
  19. "description": "一个基于node+ts+koa的网关服务",
  20. "main": "src/app.ts",
  21. "license": "MIT",
  22. "scripts": {
  23. "dev": "cross-env NODE_ENV=development nodemon -e ts --exec ts-node -r tsconfig-paths/register src/app.ts",
  24. "compile": "rm -rf ./dist && cross-env NODE_ENV=production ttsc --inlineSourceMap false",
  25. "start": "cross-env NODE_ENV=production node ./dist/app.js",
  26. "pm2:start": "pm2 start ./pm2.config.js",
  27. "pm2:list": "pm2 list",
  28. "pm2:stop": "pm2 stop gateway && pm2 delete gateway",
  29. "pm2:restart": "pm2 restart gateway",
  30. "commit": "git cz",
  31. "prepare": "husky install",
  32. "husky-hook:add": "husky add .husky/pre-commit ./node_modules/.bin/lint-staged"
  33. },
  34. "dependencies": {
  35. "@koa/multer": "^3.0.0",
  36. "axios": "^0.23.0",
  37. "consola": "^2.15.0",
  38. "cross-env": "^7.0.2",
  39. "fs-extra": "^10.0.0",
  40. "koa": "^2.13.0",
  41. "koa-bodyparser": "^4.3.0",
  42. "koa-compose": "^4.1.0",
  43. "koa-helmet": "^5.2.0",
  44. "koa-proxies": "^0.11.0",
  45. "koa-router": "^9.4.0",
  46. "koa-session": "^6.0.0",
  47. "koa-static": "^5.0.0",
  48. "log4js": "^6.3.0",
  49. "multer": "^1.4.2",
  50. "multistream": "^4.1.0",
  51. "mysql2": "^2.3.2",
  52. "nedb": "^1.8.0",
  53. "node-cache": "^5.1.2",
  54. "nodemon": "^2.0.4",
  55. "pm2": "^4.4.1",
  56. "redis": "^3.0.2",
  57. "sequelize": "^6.8.0",
  58. "ws": "^7.5.2"
  59. },
  60. "devDependencies": {
  61. "@types/fs-extra": "^9.0.12",
  62. "@types/koa": "^2.11.4",
  63. "@types/koa-bodyparser": "^4.3.0",
  64. "@types/koa-router": "^7.4.1",
  65. "@types/koa-session": "^5.10.2",
  66. "@types/koa__multer": "^2.0.3",
  67. "@types/multistream": "^2.1.1",
  68. "@types/nedb": "^1.8.11",
  69. "@types/node": "^14.11.2",
  70. "@types/redis": "^2.8.27",
  71. "@types/ws": "^7.4.6",
  72. "@typescript-eslint/eslint-plugin": "^4.29.0",
  73. "@typescript-eslint/parser": "^4.29.0",
  74. "commitizen": "^4.2.4",
  75. "cz-conventional-changelog": "^3.3.0",
  76. "eslint": "^7.32.0",
  77. "husky": "^7.0.1",
  78. "lint-staged": "^11.1.2",
  79. "ts-node": "^9.0.0",
  80. "tsconfig-paths": "^3.9.0",
  81. "ttypescript": "^1.5.12",
  82. "typescript": "^4.0.3",
  83. "typescript-transform-paths": "^3.3.0"
  84. },
  85. "bugs": "http://git.zsqlm.cn/siqing/gateway_koa_ts/issues",
  86. "homepage": "https://www.zsqlm.cn/",
  87. "repository": "http://git.zsqlm.cn/siqing/gateway_koa_ts",
  88. "config": {
  89. "commitizen": {
  90. "path": "./node_modules/cz-conventional-changelog"
  91. }
  92. },
  93. "lint-staged": {
  94. "*.{vue,js,ts}": [
  95. "eslint --fix",
  96. "git add"
  97. ]
  98. }
  99. }