diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8ee6c74 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,25 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Debug: blakus-api", + "cwd": "${workspaceFolder}", + "runtimeExecutable": "nx", + "runtimeArgs": [ + "serve", + "blakus-api", + "--inspect" + ], + "skipFiles": [ + "/**", + "${workspaceFolder}/node_modules/*" + ], + "outFiles": [ + "${workspaceFolder}/dist/**/*.js" + ] + } + // repeat for each debuggable app + ] +} diff --git a/apps/fastify-api-e2e/jest.config.ts b/apps/fastify-api-e2e/jest.config.ts index 6e5eca0..dceb10a 100644 --- a/apps/fastify-api-e2e/jest.config.ts +++ b/apps/fastify-api-e2e/jest.config.ts @@ -1,5 +1,5 @@ export default { - displayName: 'fastify-api-e2e', + displayName: 'blakus-api-e2e', preset: '../../jest.preset.js', globalSetup: '/src/support/global-setup.ts', globalTeardown: '/src/support/global-teardown.ts', @@ -14,5 +14,5 @@ export default { ], }, moduleFileExtensions: ['ts', 'js', 'html'], - coverageDirectory: '../../coverage/fastify-api-e2e', + coverageDirectory: '../../coverage/blakus-api-e2e', }; diff --git a/apps/fastify-api-e2e/project.json b/apps/fastify-api-e2e/project.json index d27ce05..785bd7c 100644 --- a/apps/fastify-api-e2e/project.json +++ b/apps/fastify-api-e2e/project.json @@ -1,17 +1,17 @@ { - "name": "fastify-api-e2e", + "name": "blakus-api-e2e", "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "implicitDependencies": ["fastify-api"], + "implicitDependencies": ["blakus-api"], "targets": { "e2e": { "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{e2eProjectRoot}"], "options": { - "jestConfig": "apps/fastify-api-e2e/jest.config.ts", + "jestConfig": "apps/blakus-api-e2e/jest.config.ts", "passWithNoTests": true }, - "dependsOn": ["fastify-api:build"] + "dependsOn": ["blakus-api:build"] } } } diff --git a/apps/fastify-api/jest.config.ts b/apps/fastify-api/jest.config.ts index 1e5b6c8..f34eddb 100644 --- a/apps/fastify-api/jest.config.ts +++ b/apps/fastify-api/jest.config.ts @@ -1,10 +1,10 @@ export default { - displayName: 'fastify-api', + displayName: 'blakus-api', preset: '../../jest.preset.js', testEnvironment: 'node', transform: { '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '/tsconfig.spec.json' }], }, moduleFileExtensions: ['ts', 'js', 'html'], - coverageDirectory: '../../coverage/apps/fastify-api', + coverageDirectory: '../../coverage/apps/blakus-api', }; diff --git a/apps/fastify-api/project.json b/apps/fastify-api/project.json index 753b782..04d9aaa 100644 --- a/apps/fastify-api/project.json +++ b/apps/fastify-api/project.json @@ -1,7 +1,7 @@ { - "name": "fastify-api", + "name": "blakus-api", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "apps/fastify-api/src", + "sourceRoot": "apps/blakus-api/src", "projectType": "application", "tags": [], "targets": { @@ -11,12 +11,12 @@ "defaultConfiguration": "production", "options": { "platform": "node", - "outputPath": "dist/apps/fastify-api", + "outputPath": "dist/apps/blakus-api", "format": ["cjs"], "bundle": false, - "main": "apps/fastify-api/src/main.ts", - "tsConfig": "apps/fastify-api/tsconfig.app.json", - "assets": ["apps/fastify-api/src/assets"], + "main": "apps/blakus-api/src/main.ts", + "tsConfig": "apps/blakus-api/tsconfig.app.json", + "assets": ["apps/blakus-api/src/assets"], "generatePackageJson": true, "esbuildOptions": { "sourcemap": true, @@ -42,15 +42,15 @@ "defaultConfiguration": "development", "dependsOn": ["build"], "options": { - "buildTarget": "fastify-api:build", + "buildTarget": "blakus-api:build", "runBuildTargetDependencies": false }, "configurations": { "development": { - "buildTarget": "fastify-api:build:development" + "buildTarget": "blakus-api:build:development" }, "production": { - "buildTarget": "fastify-api:build:production" + "buildTarget": "blakus-api:build:production" } } }, diff --git a/nx.json b/nx.json index 7bbacaa..11d23fb 100644 --- a/nx.json +++ b/nx.json @@ -34,7 +34,7 @@ "options": { "targetName": "test" }, - "exclude": ["apps/fastify-api-e2e/**/*"] + "exclude": ["apps/blakus-api-e2e/**/*"] } ] }