generator-nest-js-boilerplate
Version:
This generator will help you to build your own Nest.js Mongodb API using TypeScript 4
140 lines (139 loc) • 4.34 kB
JSON
{
"name": "<%= config.identifier %>",
"version": "0.0.3",
"description": "<%= config.description %>",
"author": "",
"license": "MIT",
"prisma": {
"seed": "ts-node prisma/seed.ts"
},
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \\\"src/**/*.ts\\\" \\\"test/**/*.ts\\\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "nest build && node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"commit": "git-cz",
"deploy:heroku": "chmod +x ./deployHeroku.sh && sudo ./deployHeroku.sh",
"docs": "typedoc --options typedoc.json",
"db:migration": "prisma migrate dev && prisma db seed"
},
"dependencies": {
"@liaoliaots/nestjs-redis": "9.0.5",
"@nestjs/common": "9.2.1",
"@nestjs/config": "2.2.0",
"@nestjs/core": "9.2.1",
"@nestjs/jwt": "10.0.1",
"@nestjs/passport": "9.0.0",
"@nestjs/platform-express": "9.2.1",
"@nestjs/swagger": "6.1.4",
"@nestjs/testing": "9.2.1",
"bcryptjs": "2.4.3",
"class-transformer": "0.5.1",
"class-validator": "0.13.2",
"connect-mongodb-session": "3.1.1",
"express": "4.18.1",
"express-session": "1.17.3",
"husky": "8.0.1",
"ioredis": "5.0.6",
"lodash": "4.17.21",
"module-alias": "2.2.2",
"nestjs-redis": "1.3.3",
"open": "8.4.0",
"passport-google-oauth20": "2.0.0",
"passport-jwt": "4.0.0",
"passport-local": "1.0.0",
"reflect-metadata": "0.1.13",
"rimraf": "3.0.2",
"rxjs": "7.5.5",
"swagger-ui-express": "4.4.0"
},
"devDependencies": {
"@nestjs/cli": "9.1.8",
"@nestjs/schematics": "9.0.4",
"@types/bcryptjs": "2.4.2",
"@types/express": "4.17.13",
"@types/jest": "28.1.3",
"@types/lodash": "4.14.182",
"@types/node": "18.0.0",
"@types/passport-jwt": "3.0.6",
"@types/passport-local": "1.0.34",
"@types/supertest": "2.0.12",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "8.18.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.0.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"jest": "28.1.1",
"prettier": "2.7.1",
"supertest": "6.2.3",
"ts-jest": "28.0.5",
"ts-loader": "9.3.0",
"ts-node": "10.8.1",
"tsconfig-paths": "3.14.1",
"typescript": "4.7.4"
},
"jest": {
"moduleNameMapper": {
"^@shared(.*)$": "<rootDir>/components/shared$1",
"^@components(.*)$": "<rootDir>/components$1",
"^@filters(.*)$": "<rootDir>/filters$1",
"^@guards(.*)$": "<rootDir>/guards$1",
"^@interfaces(.*)$": "<rootDir>/interfaces$1",
"^@pipes(.*)$": "<rootDir>/pipes$1",
"^@dto(.*)$": "<rootDir>/dto$1",
"^@responses(.*)$": "<rootDir>/responses$1",
"^@interceptors(.*)$": "<rootDir>/interceptors$1",
"^@decorators(.*)$": "<rootDir>/decorators$1",
"^@v1(.*)$": "<rootDir>/src/modules/v1$1",
"^@exceptions(.*)$": "<rootDir>/src/exceptions/v1$1"
},
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"_moduleAliases": {
"@shared": "./dist/components/shared",
"@components": "./dist/components",
"@filters": "./dist/filters",
"@guards": "./dist/guards",
"@interfaces": "./dist/interfaces",
"@pipes": "./dist/pipes",
"@dto": "./dist/dto",
"@responses": "./dist/responses",
"@interceptors": "./dist/interceptors",
"@decorators": "./dist/decorators",
"@utils": "./dist/utils"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"pre-push": "npm test"
}
}
}