package.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "name": "base-backend-nestjs",
  3. "version": "0.0.1",
  4. "description": "",
  5. "author": "",
  6. "private": true,
  7. "license": "UNLICENSED",
  8. "scripts": {
  9. "prebuild": "rimraf dist",
  10. "build": "nest build && yarn copy",
  11. "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
  12. "copy": "rsync -av src/i18n dist/src",
  13. "start": "yarn copy && nest start",
  14. "start:dev": "yarn copy && nest start --watch",
  15. "start:debug": "nest start --debug --watch",
  16. "start:prod": "node dist/main",
  17. "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
  18. "test": "jest",
  19. "test:watch": "jest --watch",
  20. "test:cov": "jest --coverage",
  21. "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
  22. "test:e2e": "jest --config ./test/jest-e2e.json"
  23. },
  24. "dependencies": {
  25. "@nestjs/common": "^8.0.0",
  26. "@nestjs/core": "^8.0.0",
  27. "@nestjs/platform-express": "^8.0.0",
  28. "@nestjs/swagger": "^5.2.0",
  29. "@nestjs/typeorm": "^8.0.3",
  30. "class-transformer": "^0.5.1",
  31. "class-validator": "^0.13.2",
  32. "class-validator-multi-lang": "^0.130.100",
  33. "mysql2": "^2.3.3",
  34. "nestjs-i18n": "^8.2.2",
  35. "reflect-metadata": "^0.1.13",
  36. "rimraf": "^3.0.2",
  37. "rsync": "^0.6.1",
  38. "rxjs": "^7.2.0",
  39. "swagger-ui-express": "^4.3.0",
  40. "typeorm": "^0.2.41"
  41. },
  42. "devDependencies": {
  43. "@nestjs/cli": "^8.0.0",
  44. "@nestjs/jwt": "^8.0.0",
  45. "@nestjs/passport": "^8.2.1",
  46. "@nestjs/schematics": "^8.0.0",
  47. "@nestjs/testing": "^8.0.0",
  48. "@types/express": "^4.17.13",
  49. "@types/jest": "^27.0.1",
  50. "@types/node": "^16.0.0",
  51. "@types/supertest": "^2.0.11",
  52. "@typescript-eslint/eslint-plugin": "^4.28.2",
  53. "@typescript-eslint/parser": "^4.28.2",
  54. "bcrypt": "^5.0.1",
  55. "eslint": "^7.30.0",
  56. "eslint-config-airbnb-typescript": "^16.1.0",
  57. "eslint-config-prettier": "^8.3.0",
  58. "eslint-plugin-prettier": "^3.4.0",
  59. "jest": "^27.0.6",
  60. "passport": "^0.5.2",
  61. "passport-jwt": "^4.0.0",
  62. "passport-local": "^1.0.0",
  63. "prettier": "^2.3.2",
  64. "supertest": "^6.1.3",
  65. "ts-jest": "^27.0.3",
  66. "ts-loader": "^9.2.3",
  67. "ts-node": "^10.0.0",
  68. "tsconfig-paths": "^3.10.1",
  69. "typescript": "^4.3.5"
  70. },
  71. "jest": {
  72. "moduleFileExtensions": [
  73. "js",
  74. "json",
  75. "ts"
  76. ],
  77. "rootDir": "src",
  78. "testRegex": ".*\\.spec\\.ts$",
  79. "transform": {
  80. "^.+\\.(t|j)s$": "ts-jest"
  81. },
  82. "collectCoverageFrom": [
  83. "**/*.(t|j)s"
  84. ],
  85. "coverageDirectory": "../coverage",
  86. "testEnvironment": "node"
  87. }
  88. }