2023-05-03 11:43:21 +00:00
|
|
|
{
|
|
|
|
"name": "@mobicoop/ad",
|
2023-06-29 08:50:09 +00:00
|
|
|
"version": "1.0.0",
|
2023-05-03 11:43:21 +00:00
|
|
|
"description": "Mobicoop V3 Ad",
|
|
|
|
"author": "sbriat",
|
|
|
|
"private": true,
|
|
|
|
"license": "AGPL",
|
|
|
|
"scripts": {
|
2023-05-03 15:31:26 +00:00
|
|
|
"prebuild": "rimraf dist",
|
2023-05-03 11:43:21 +00:00
|
|
|
"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": "node dist/main",
|
|
|
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
2023-05-03 15:31:26 +00:00
|
|
|
"lint:check": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix-dry-run --ignore-path .gitignore",
|
|
|
|
"pretty:check": "./node_modules/.bin/prettier --check .",
|
|
|
|
"pretty": "./node_modules/.bin/prettier --write .",
|
|
|
|
"test": "npm run migrate:test && dotenv -e .env.test jest",
|
|
|
|
"test:unit": "jest --testPathPattern 'tests/unit/' --verbose",
|
2023-05-24 10:14:51 +00:00
|
|
|
"test:unit:watch": "jest --testPathPattern 'tests/unit/' --verbose --watch",
|
2023-05-03 15:31:26 +00:00
|
|
|
"test:unit:ci": "jest --testPathPattern 'tests/unit/' --coverage",
|
2023-05-25 13:43:23 +00:00
|
|
|
"test:integration": "npm run migrate:test && dotenv -e .env.test -- jest --testPathPattern 'tests/integration/' --verbose",
|
|
|
|
"test:integration:watch": "npm run migrate:test && dotenv -e .env.test -- jest --testPathPattern 'tests/integration/' --verbose --watch",
|
2023-05-03 15:31:26 +00:00
|
|
|
"test:integration:ci": "npm run migrate:test:ci && dotenv -e ci/.env.ci -- jest --testPathPattern 'tests/integration/'",
|
|
|
|
"test:cov": "jest --testPathPattern 'tests/unit/' --coverage",
|
|
|
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
|
|
"generate": "docker exec v3-ad-api sh -c 'npx prisma generate'",
|
|
|
|
"migrate": "docker exec v3-ad-api sh -c 'npx prisma migrate dev'",
|
2023-05-10 12:37:00 +00:00
|
|
|
"migrate:init": "docker exec v3-ad-api sh -c 'npx prisma migrate dev --name init'",
|
2023-05-03 15:31:26 +00:00
|
|
|
"migrate:test": "dotenv -e .env.test -- npx prisma migrate deploy",
|
|
|
|
"migrate:test:ci": "dotenv -e ci/.env.ci -- npx prisma migrate deploy",
|
|
|
|
"migrate:deploy": "npx prisma migrate deploy"
|
2023-05-03 11:43:21 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-05-03 15:31:26 +00:00
|
|
|
"@grpc/grpc-js": "^1.8.14",
|
|
|
|
"@grpc/proto-loader": "^0.7.6",
|
|
|
|
"@liaoliaots/nestjs-redis": "^9.0.5",
|
2023-06-20 14:50:55 +00:00
|
|
|
"@mobicoop/configuration-module": "^1.2.0",
|
2023-06-30 14:36:17 +00:00
|
|
|
"@mobicoop/ddd-library": "^0.0.1",
|
2023-06-20 14:50:55 +00:00
|
|
|
"@mobicoop/message-broker-module": "^1.2.0",
|
2023-05-03 11:43:21 +00:00
|
|
|
"@nestjs/common": "^9.0.0",
|
2023-05-03 15:31:26 +00:00
|
|
|
"@nestjs/config": "^2.3.1",
|
2023-05-03 11:43:21 +00:00
|
|
|
"@nestjs/core": "^9.0.0",
|
2023-05-03 15:31:26 +00:00
|
|
|
"@nestjs/cqrs": "^9.0.3",
|
2023-06-20 14:50:55 +00:00
|
|
|
"@nestjs/event-emitter": "^1.4.2",
|
2023-05-03 15:31:26 +00:00
|
|
|
"@nestjs/microservices": "^9.4.0",
|
2023-05-03 11:43:21 +00:00
|
|
|
"@nestjs/platform-express": "^9.0.0",
|
2023-05-03 15:31:26 +00:00
|
|
|
"@nestjs/terminus": "^9.2.2",
|
|
|
|
"@prisma/client": "^4.13.0",
|
2023-05-04 10:07:53 +00:00
|
|
|
"class-transformer": "^0.5.1",
|
2023-05-03 15:31:26 +00:00
|
|
|
"class-validator": "^0.14.0",
|
2023-06-20 14:50:55 +00:00
|
|
|
"geo-tz": "^7.0.7",
|
2023-05-03 15:31:26 +00:00
|
|
|
"ioredis": "^5.3.2",
|
2023-06-20 14:50:55 +00:00
|
|
|
"nestjs-request-context": "^2.1.0",
|
2023-05-03 11:43:21 +00:00
|
|
|
"reflect-metadata": "^0.1.13",
|
2023-06-20 14:50:55 +00:00
|
|
|
"rxjs": "^7.2.0",
|
|
|
|
"timezonecomplete": "^5.12.4"
|
2023-05-03 11:43:21 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@nestjs/cli": "^9.0.0",
|
|
|
|
"@nestjs/schematics": "^9.0.0",
|
|
|
|
"@nestjs/testing": "^9.0.0",
|
|
|
|
"@types/express": "^4.17.13",
|
|
|
|
"@types/jest": "29.5.0",
|
|
|
|
"@types/node": "18.15.11",
|
|
|
|
"@types/supertest": "^2.0.11",
|
2023-06-20 14:50:55 +00:00
|
|
|
"@types/uuid": "^9.0.2",
|
2023-05-03 11:43:21 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
|
|
"@typescript-eslint/parser": "^5.0.0",
|
2023-06-02 07:49:19 +00:00
|
|
|
"dotenv-cli": "^7.2.1",
|
2023-05-03 11:43:21 +00:00
|
|
|
"eslint": "^8.0.1",
|
|
|
|
"eslint-config-prettier": "^8.3.0",
|
|
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
|
|
"jest": "29.5.0",
|
|
|
|
"prettier": "^2.3.2",
|
2023-05-03 15:31:26 +00:00
|
|
|
"prisma": "^4.13.0",
|
2023-05-03 11:43:21 +00:00
|
|
|
"source-map-support": "^0.5.20",
|
|
|
|
"supertest": "^6.1.3",
|
|
|
|
"ts-jest": "29.0.5",
|
|
|
|
"ts-loader": "^9.2.3",
|
|
|
|
"ts-node": "^10.0.0",
|
|
|
|
"tsconfig-paths": "4.2.0",
|
|
|
|
"typescript": "^4.7.4"
|
|
|
|
},
|
|
|
|
"jest": {
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"js",
|
|
|
|
"json",
|
|
|
|
"ts"
|
|
|
|
],
|
2023-05-03 15:31:26 +00:00
|
|
|
"modulePathIgnorePatterns": [
|
|
|
|
".module.ts",
|
2023-06-21 09:50:36 +00:00
|
|
|
".dto.ts",
|
2023-06-06 10:53:59 +00:00
|
|
|
".constants.ts",
|
2023-06-27 15:51:20 +00:00
|
|
|
".response.ts",
|
|
|
|
".response.base.ts",
|
|
|
|
".port.ts",
|
|
|
|
"libs/exceptions",
|
|
|
|
"libs/types",
|
2023-06-28 08:02:13 +00:00
|
|
|
"prisma.service.ts",
|
2023-06-28 12:24:34 +00:00
|
|
|
"convert-props-to-object.util.ts",
|
2023-05-03 15:31:26 +00:00
|
|
|
"main.ts"
|
|
|
|
],
|
2023-05-03 11:43:21 +00:00
|
|
|
"rootDir": "src",
|
2023-06-21 09:50:36 +00:00
|
|
|
"testRegex": ".*\\.spec\\.ts$",
|
2023-05-03 11:43:21 +00:00
|
|
|
"transform": {
|
|
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
|
|
},
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"**/*.(t|j)s"
|
|
|
|
],
|
2023-05-03 15:31:26 +00:00
|
|
|
"coveragePathIgnorePatterns": [
|
|
|
|
".module.ts",
|
2023-06-21 09:50:36 +00:00
|
|
|
".dto.ts",
|
2023-06-06 10:53:59 +00:00
|
|
|
".constants.ts",
|
2023-06-27 15:51:20 +00:00
|
|
|
".response.ts",
|
|
|
|
".response.base.ts",
|
|
|
|
".port.ts",
|
|
|
|
"libs/exceptions",
|
|
|
|
"libs/types",
|
2023-06-28 08:02:13 +00:00
|
|
|
"prisma.service.ts",
|
2023-06-28 12:24:34 +00:00
|
|
|
"convert-props-to-object.util.ts",
|
2023-05-03 15:31:26 +00:00
|
|
|
"main.ts"
|
|
|
|
],
|
2023-05-03 11:43:21 +00:00
|
|
|
"coverageDirectory": "../coverage",
|
2023-06-20 14:50:55 +00:00
|
|
|
"moduleNameMapper": {
|
|
|
|
"^@libs(.*)": "<rootDir>/libs/$1",
|
2023-06-21 09:50:36 +00:00
|
|
|
"^@modules(.*)": "<rootDir>/modules/$1",
|
2023-06-27 12:02:10 +00:00
|
|
|
"^@src(.*)": "<rootDir>$1"
|
2023-06-20 14:50:55 +00:00
|
|
|
},
|
2023-05-03 11:43:21 +00:00
|
|
|
"testEnvironment": "node"
|
|
|
|
}
|
|
|
|
}
|