Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dummy #266

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

dummy #266

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 17 additions & 13 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}
27 changes: 27 additions & 0 deletions .vscode/tasks.json.old
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
}
4 changes: 4 additions & 0 deletions src/api/controllers/PetController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 4 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/loaders/typeormLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down