82 lines
2.6 KiB
JSON
82 lines
2.6 KiB
JSON
{
|
|
"name": "mobicoop-v3-user",
|
|
"version": "0.0.1",
|
|
"description": "Mobicoop V3 User Service",
|
|
"author": "sbriat",
|
|
"private": true,
|
|
"license": "AGPL",
|
|
"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": "node dist/main",
|
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
"test": "npm run migrate-test && dotenv -e .env.test jest",
|
|
"test:ci": "docker ps && dotenv -e ci/.env.ci -- npx prisma migrate deploy --name postgres-init && dotenv -e ci/.env.ci jest",
|
|
"test:unit": "jest --testPathIgnorePatterns 'integration' --verbose",
|
|
"test:integration": "dotenv -e .env.test -- npx prisma migrate dev --name postgres-init && dotenv -e .env.test -- jest --testPathPattern 'integration' --verbose",
|
|
"test:cov": "npm run migrate-test && dotenv -e .env.test -- jest --coverage",
|
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
"migrate": "docker exec v3-user sh -c 'npx prisma migrate dev'"
|
|
},
|
|
"dependencies": {
|
|
"@automapper/classes": "^8.7.7",
|
|
"@automapper/core": "^8.7.7",
|
|
"@automapper/nestjs": "^8.7.7",
|
|
"@golevelup/nestjs-rabbitmq": "^3.4.0",
|
|
"@grpc/grpc-js": "^1.8.0",
|
|
"@grpc/proto-loader": "^0.7.4",
|
|
"@nestjs/common": "^9.0.0",
|
|
"@nestjs/config": "^2.2.0",
|
|
"@nestjs/core": "^9.0.0",
|
|
"@nestjs/cqrs": "^9.0.1",
|
|
"@nestjs/microservices": "^9.2.1",
|
|
"@nestjs/platform-express": "^9.0.0",
|
|
"@prisma/client": "^4.7.1",
|
|
"@types/supertest": "^2.0.11",
|
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
"@typescript-eslint/parser": "^5.0.0",
|
|
"dotenv-cli": "^6.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@nestjs/cli": "^9.0.0",
|
|
"@nestjs/schematics": "^9.0.0",
|
|
"@nestjs/testing": "^9.0.0",
|
|
"@types/jest": "^29.2.5",
|
|
"@types/node": "^18.11.18",
|
|
"eslint": "^8.0.1",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
"jest": "28.1.3",
|
|
"prettier": "^2.3.2",
|
|
"prisma": "^4.7.1",
|
|
"source-map-support": "^0.5.20",
|
|
"supertest": "^6.1.3",
|
|
"ts-jest": "28.0.8",
|
|
"ts-loader": "^9.2.3",
|
|
"ts-node": "^10.9.1",
|
|
"tsconfig-paths": "4.1.0",
|
|
"typescript": "^4.9.4"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"ts"
|
|
],
|
|
"rootDir": "src",
|
|
"testRegex": ".*\\.spec\\.ts$",
|
|
"transform": {
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
},
|
|
"collectCoverageFrom": [
|
|
"**/*.(t|j)s"
|
|
],
|
|
"coverageDirectory": "../coverage",
|
|
"testEnvironment": "node"
|
|
}
|
|
}
|