|
| 1 | +{ |
| 2 | + "name": "nest.js-api-starter-kit", |
| 3 | + "version": "1.0.0", |
| 4 | + "description": "Nest.js API project starter kit by @mahabubx7", |
| 5 | + "author": "Mahabub <mahabubx7@gmail.com>", |
| 6 | + "private": true, |
| 7 | + "license": "UNLICENSED", |
| 8 | + "scripts": { |
| 9 | + "build": "nest build", |
| 10 | + "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", |
| 11 | + "start": "nest start", |
| 12 | + "start:dev": "nest start --watch", |
| 13 | + "start:debug": "nest start --debug --watch", |
| 14 | + "start:prod": "node dist/main", |
| 15 | + "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", |
| 16 | + "test": "jest", |
| 17 | + "test:watch": "jest --watch", |
| 18 | + "test:cov": "jest --coverage", |
| 19 | + "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", |
| 20 | + "test:e2e": "jest --config ./test/jest-e2e.json", |
| 21 | + "precommit": "npx lint-staged", |
| 22 | + "commit-msg": "npx commitlint -E HUSKY_GIT_PARAMS" |
| 23 | + }, |
| 24 | + "dependencies": { |
| 25 | + "@nestjs/common": "^10.0.0", |
| 26 | + "@nestjs/core": "^10.0.0", |
| 27 | + "@nestjs/platform-express": "^10.0.0", |
| 28 | + "reflect-metadata": "^0.2.0", |
| 29 | + "rxjs": "^7.8.1" |
| 30 | + }, |
| 31 | + "devDependencies": { |
| 32 | + "@commitlint/cli": "^19.2.1", |
| 33 | + "@commitlint/config-conventional": "^19.1.0", |
| 34 | + "@nestjs/cli": "^10.0.0", |
| 35 | + "@nestjs/schematics": "^10.0.0", |
| 36 | + "@nestjs/testing": "^10.0.0", |
| 37 | + "@types/express": "^4.17.17", |
| 38 | + "@types/jest": "^29.5.2", |
| 39 | + "@types/node": "^20.3.1", |
| 40 | + "@types/supertest": "^6.0.0", |
| 41 | + "@typescript-eslint/eslint-plugin": "^6.0.0", |
| 42 | + "@typescript-eslint/parser": "^6.0.0", |
| 43 | + "commitizen": "^4.3.0", |
| 44 | + "cz-conventional-changelog": "^3.3.0", |
| 45 | + "eslint": "^8.57.0", |
| 46 | + "eslint-config-prettier": "^9.1.0", |
| 47 | + "eslint-plugin-import": "^2.29.1", |
| 48 | + "eslint-plugin-prettier": "^5.0.0", |
| 49 | + "husky": "^9.0.11", |
| 50 | + "jest": "^29.5.0", |
| 51 | + "lint-staged": "^15.2.2", |
| 52 | + "prettier": "^3.2.5", |
| 53 | + "source-map-support": "^0.5.21", |
| 54 | + "supertest": "^6.3.3", |
| 55 | + "ts-jest": "^29.1.0", |
| 56 | + "ts-loader": "^9.4.3", |
| 57 | + "ts-node": "^10.9.1", |
| 58 | + "tsconfig-paths": "^4.2.0", |
| 59 | + "typescript": "^5.1.3" |
| 60 | + }, |
| 61 | + "engines": { |
| 62 | + "node": ">=20.11.0", |
| 63 | + "npm": ">=10.2.4" |
| 64 | + }, |
| 65 | + "packageManager": ">=npm@10.2.4", |
| 66 | + "jest": { |
| 67 | + "moduleFileExtensions": [ |
| 68 | + "js", |
| 69 | + "json", |
| 70 | + "ts" |
| 71 | + ], |
| 72 | + "rootDir": "src", |
| 73 | + "testRegex": ".*\\.spec\\.ts$", |
| 74 | + "transform": { |
| 75 | + "^.+\\.(t|j)s$": "ts-jest" |
| 76 | + }, |
| 77 | + "collectCoverageFrom": [ |
| 78 | + "**/*.(t|j)s" |
| 79 | + ], |
| 80 | + "coverageDirectory": "../coverage", |
| 81 | + "testEnvironment": "node" |
| 82 | + }, |
| 83 | + "husky": { |
| 84 | + "hooks": { |
| 85 | + "pre-commit": "lint-staged", |
| 86 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
| 87 | + } |
| 88 | + }, |
| 89 | + "lint-staged": { |
| 90 | + "*.ts": [ |
| 91 | + "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", |
| 92 | + "git add" |
| 93 | + ] |
| 94 | + } |
| 95 | +} |
0 commit comments