feat: add nestjs api and worker skeletons

This commit is contained in:
Bastian Wagner
2026-08-17 13:18:24 +02:00
parent c23bda56a3
commit a08eecd4e3
17 changed files with 124 additions and 32 deletions

View File

@@ -6,18 +6,21 @@
"private": true,
"license": "UNLICENSED",
"scripts": {
"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": "jest",
"build": "pnpm run build:api && pnpm run build:worker",
"build:api": "nest build api",
"build:worker": "nest build worker",
"format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\"",
"start": "nest start api",
"start:dev": "nest start api --watch",
"start:debug": "nest start api --debug --watch",
"start:api": "node dist/apps/api/main.js",
"start:worker": "node dist/apps/worker/main.js",
"lint": "eslint \"{apps,libs}/**/*.ts\" --fix",
"test": "jest --runInBand",
"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"
"test:e2e": "jest --config ./apps/api/test/jest-e2e.json"
},
"dependencies": {
"@nestjs/common": "^11.0.1",
@@ -57,15 +60,21 @@
"json",
"ts"
],
"rootDir": "src",
"rootDir": ".",
"testRegex": ".*\\.spec\\.ts$",
"testPathIgnorePatterns": ["<rootDir>/node_modules/", "<rootDir>/dist/"],
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"moduleNameMapper": {
"^@travel/configuration$": "<rootDir>/libs/configuration/src",
"^@travel/infrastructure$": "<rootDir>/libs/infrastructure/src"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
"apps/**/*.(t|j)s",
"libs/**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"coverageDirectory": "coverage",
"testEnvironment": "node"
}
}