Rename api

This commit is contained in:
Broks Randolfs Gailītis 2025-03-02 13:39:28 +02:00
parent 215f2ef9ec
commit c2c786b1f4
6 changed files with 43 additions and 18 deletions

25
.vscode/launch.json vendored Normal file
View File

@ -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": [
"<node_internals>/**",
"${workspaceFolder}/node_modules/*"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
}
// repeat for each debuggable app
]
}

View File

@ -1,5 +1,5 @@
export default { export default {
displayName: 'fastify-api-e2e', displayName: 'blakus-api-e2e',
preset: '../../jest.preset.js', preset: '../../jest.preset.js',
globalSetup: '<rootDir>/src/support/global-setup.ts', globalSetup: '<rootDir>/src/support/global-setup.ts',
globalTeardown: '<rootDir>/src/support/global-teardown.ts', globalTeardown: '<rootDir>/src/support/global-teardown.ts',
@ -14,5 +14,5 @@ export default {
], ],
}, },
moduleFileExtensions: ['ts', 'js', 'html'], moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/fastify-api-e2e', coverageDirectory: '../../coverage/blakus-api-e2e',
}; };

View File

@ -1,17 +1,17 @@
{ {
"name": "fastify-api-e2e", "name": "blakus-api-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json", "$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application", "projectType": "application",
"implicitDependencies": ["fastify-api"], "implicitDependencies": ["blakus-api"],
"targets": { "targets": {
"e2e": { "e2e": {
"executor": "@nx/jest:jest", "executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{e2eProjectRoot}"], "outputs": ["{workspaceRoot}/coverage/{e2eProjectRoot}"],
"options": { "options": {
"jestConfig": "apps/fastify-api-e2e/jest.config.ts", "jestConfig": "apps/blakus-api-e2e/jest.config.ts",
"passWithNoTests": true "passWithNoTests": true
}, },
"dependsOn": ["fastify-api:build"] "dependsOn": ["blakus-api:build"]
} }
} }
} }

View File

@ -1,10 +1,10 @@
export default { export default {
displayName: 'fastify-api', displayName: 'blakus-api',
preset: '../../jest.preset.js', preset: '../../jest.preset.js',
testEnvironment: 'node', testEnvironment: 'node',
transform: { transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }], '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
}, },
moduleFileExtensions: ['ts', 'js', 'html'], moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/apps/fastify-api', coverageDirectory: '../../coverage/apps/blakus-api',
}; };

View File

@ -1,7 +1,7 @@
{ {
"name": "fastify-api", "name": "blakus-api",
"$schema": "../../node_modules/nx/schemas/project-schema.json", "$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/fastify-api/src", "sourceRoot": "apps/blakus-api/src",
"projectType": "application", "projectType": "application",
"tags": [], "tags": [],
"targets": { "targets": {
@ -11,12 +11,12 @@
"defaultConfiguration": "production", "defaultConfiguration": "production",
"options": { "options": {
"platform": "node", "platform": "node",
"outputPath": "dist/apps/fastify-api", "outputPath": "dist/apps/blakus-api",
"format": ["cjs"], "format": ["cjs"],
"bundle": false, "bundle": false,
"main": "apps/fastify-api/src/main.ts", "main": "apps/blakus-api/src/main.ts",
"tsConfig": "apps/fastify-api/tsconfig.app.json", "tsConfig": "apps/blakus-api/tsconfig.app.json",
"assets": ["apps/fastify-api/src/assets"], "assets": ["apps/blakus-api/src/assets"],
"generatePackageJson": true, "generatePackageJson": true,
"esbuildOptions": { "esbuildOptions": {
"sourcemap": true, "sourcemap": true,
@ -42,15 +42,15 @@
"defaultConfiguration": "development", "defaultConfiguration": "development",
"dependsOn": ["build"], "dependsOn": ["build"],
"options": { "options": {
"buildTarget": "fastify-api:build", "buildTarget": "blakus-api:build",
"runBuildTargetDependencies": false "runBuildTargetDependencies": false
}, },
"configurations": { "configurations": {
"development": { "development": {
"buildTarget": "fastify-api:build:development" "buildTarget": "blakus-api:build:development"
}, },
"production": { "production": {
"buildTarget": "fastify-api:build:production" "buildTarget": "blakus-api:build:production"
} }
} }
}, },

View File

@ -34,7 +34,7 @@
"options": { "options": {
"targetName": "test" "targetName": "test"
}, },
"exclude": ["apps/fastify-api-e2e/**/*"] "exclude": ["apps/blakus-api-e2e/**/*"]
} }
] ]
} }