Skip to content

Commit b938693

Browse files
author
Umed Khudoiberdiev
committed
added Microframework new class supposed to replace MicroFrameworkBootstrapper class
1 parent aa1d166 commit b938693

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "microframework",
33
"private": true,
4-
"version": "0.5.4",
4+
"version": "0.5.5",
55
"description": "Micro framework is a bundle of express.js, mongodb ODM, validator, dependancy injection framework and restful controllers for your apps using Typescript",
66
"license": "Apache-2.0",
77
"readmeFilename": "README.md",

src/MicroFramework.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import {MicroFrameworkBootstrapper} from "./MicroFrameworkBootstrapper";
2+
3+
/**
4+
* This class runs microframework and its specified modules.
5+
*/
6+
export class MicroFramework extends MicroFrameworkBootstrapper{
7+
8+
}

src/MicroFrameworkBootstrapper.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ import {Container} from "typedi";
33
import {ModuleRegistry} from "./ModulesRegistry";
44
import {MicroFrameworkSettings} from "./MicroFrameworkSettings";
55
import {ConfigLoader} from "./ConfigLoader";
6-
import {Configurator} from "configuration-manager";
7-
import defaultConfigurator from "configuration-manager";
6+
import defaultConfigurator, {Configurator} from "configuration-manager";
87
import {Module} from "./Module";
98
import {MicroFrameworkConfig} from "./MicroFrameworkConfig";
109
import {MicroFrameworkRegistry} from "./MicroFrameworkRegistry";
1110
import {MicroframeworkNameAlreadyExistException} from "./exception/MicroframeworkNameAlreadyExistException";
1211

1312
/**
1413
* This class runs microframework and its specified modules.
14+
*
15+
* @deprecated
1516
*/
1617
export class MicroFrameworkBootstrapper {
1718

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ export * from "./MicroFrameworkRegistry";
66
export * from "./MicroFrameworkSettings";
77
export * from "./MicroFrameworkUtils";
88
export * from "./Module";
9-
export * from "./ModulesRegistry";
9+
export * from "./ModulesRegistry";
10+
export * from "./MicroFramework";

0 commit comments

Comments
 (0)