From 0d47e646fe0292b8adb9f048af7ee11c9e46b347 Mon Sep 17 00:00:00 2001 From: somshekar0033 Date: Fri, 5 May 2023 23:53:32 +0530 Subject: [PATCH 1/3] dummy changes --- .vscode/tasks.json | 30 +++++++++++++++++------------- .vscode/tasks.json.old | 27 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 13 deletions(-) create mode 100644 .vscode/tasks.json.old diff --git a/.vscode/tasks.json b/.vscode/tasks.json index db09c576..3276b40d 100755 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,27 +1,31 @@ { - "version": "0.1.0", + "version": "2.0.0", "command": "npm", - "isShellCommand": true, - "suppressTaskName": true, "tasks": [ { - // Build task, Cmd+Shift+B - // "npm run build" - "taskName": "build", - "isBuildCommand": true, + "label": "build", + "type": "shell", "args": [ "run", "build" - ] + ], + "problemMatcher": [], + "group": { + "_id": "build", + "isDefault": false + } }, { - // Test task, Cmd+Shift+T - // "npm test" - "taskName": "test", - "isTestCommand": true, + "label": "test", + "type": "shell", "args": [ "test" - ] + ], + "problemMatcher": [], + "group": { + "_id": "test", + "isDefault": false + } } ] } diff --git a/.vscode/tasks.json.old b/.vscode/tasks.json.old new file mode 100644 index 00000000..db09c576 --- /dev/null +++ b/.vscode/tasks.json.old @@ -0,0 +1,27 @@ +{ + "version": "0.1.0", + "command": "npm", + "isShellCommand": true, + "suppressTaskName": true, + "tasks": [ + { + // Build task, Cmd+Shift+B + // "npm run build" + "taskName": "build", + "isBuildCommand": true, + "args": [ + "run", + "build" + ] + }, + { + // Test task, Cmd+Shift+T + // "npm test" + "taskName": "test", + "isTestCommand": true, + "args": [ + "test" + ] + } + ] +} From 99c7857a211387440413696f56c957d284392ee2 Mon Sep 17 00:00:00 2001 From: somshekar0033 Date: Fri, 5 May 2023 23:54:23 +0530 Subject: [PATCH 2/3] dummmy --- src/app.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 78503ca4..e39dc972 100644 --- a/src/app.ts +++ b/src/app.ts @@ -24,7 +24,10 @@ import { winstonLoader } from './loaders/winstonLoader'; * the 'README.md' file. */ const log = new Logger(__filename); - +/** + * Loader is a place where you can configure all your modules during microframework + * bootstrap process. All loaders are executed one by one in a sequential order. + */ bootstrapMicroframework({ /** * Loader is a place where you can configure all your modules during microframework From 52898963c4b13055e93d721da0910d3832b4c186 Mon Sep 17 00:00:00 2001 From: somshekar0033 Date: Fri, 5 May 2023 23:55:04 +0530 Subject: [PATCH 3/3] dummy --- src/api/controllers/PetController.ts | 4 ++++ src/loaders/typeormLoader.ts | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/api/controllers/PetController.ts b/src/api/controllers/PetController.ts index afb02a66..9fce7217 100644 --- a/src/api/controllers/PetController.ts +++ b/src/api/controllers/PetController.ts @@ -33,6 +33,10 @@ class CreatePetBody extends BasePet { @Authorized() @JsonController('/pets') @OpenAPI({ security: [{ basicAuth: [] }] }) +/** + * Loader is a place where you can configure all your modules during microframework + * bootstrap process. All loaders are executed one by one in a sequential order. + */ export class PetController { constructor( diff --git a/src/loaders/typeormLoader.ts b/src/loaders/typeormLoader.ts index 6c7de288..17d33f0d 100644 --- a/src/loaders/typeormLoader.ts +++ b/src/loaders/typeormLoader.ts @@ -2,7 +2,10 @@ import { MicroframeworkLoader, MicroframeworkSettings } from 'microframework-w3t import { createConnection, getConnectionOptions } from 'typeorm'; import { env } from '../env'; - +/** + * Loader is a place where you can configure all your modules during microframework + * bootstrap process. All loaders are executed one by one in a sequential order. + */ export const typeormLoader: MicroframeworkLoader = async (settings: MicroframeworkSettings | undefined) => { const loadedConnectionOptions = await getConnectionOptions();