package.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. "nedb": "^1.8.0",
  52. "node-cache": "^5.1.2",
  53. "nodemon": "^2.0.4",
  54. "pm2": "^4.4.1",
  55. "redis": "^3.0.2",
  56. "ws": "^7.5.2"
  57. },
  58. "devDependencies": {
  59. "@types/fs-extra": "^9.0.12",
  60. "@types/koa": "^2.11.4",
  61. "@types/koa-bodyparser": "^4.3.0",
  62. "@types/koa-router": "^7.4.1",
  63. "@types/koa-session": "^5.10.2",
  64. "@types/koa__multer": "^2.0.3",
  65. "@types/multistream": "^2.1.1",
  66. "@types/nedb": "^1.8.11",
  67. "@types/node": "^14.11.2",
  68. "@types/redis": "^2.8.27",
  69. "@types/ws": "^7.4.6",
  70. "@typescript-eslint/eslint-plugin": "^4.29.0",
  71. "@typescript-eslint/parser": "^4.29.0",
  72. "commitizen": "^4.2.4",
  73. "cz-conventional-changelog": "^3.3.0",
  74. "eslint": "^7.32.0",
  75. "husky": "^7.0.1",
  76. "lint-staged": "^11.1.2",
  77. "ts-node": "^9.0.0",
  78. "tsconfig-paths": "^3.9.0",
  79. "ttypescript": "^1.5.12",
  80. "typescript": "^4.0.3",
  81. "typescript-transform-paths": "^3.3.0"
  82. },
  83. "bugs": "http://git.zsqlm.cn/siqing/gateway_koa_ts/issues",
  84. "homepage": "https://www.zsqlm.cn/",
  85. "repository": "http://git.zsqlm.cn/siqing/gateway_koa_ts",
  86. "config": {
  87. "commitizen": {
  88. "path": "./node_modules/cz-conventional-changelog"
  89. }
  90. },
  91. "lint-staged": {
  92. "*.{vue,js,ts}": [
  93. "eslint --fix",
  94. "git add"
  95. ]
  96. }
  97. }