microframework
Advanced tools
Comparing version 0.1.7 to 0.2.0
@@ -13,2 +13,6 @@ "use strict"; | ||
var _path = require("path"); | ||
var path = _interopRequireWildcard(_path); | ||
var _fs = require("fs"); | ||
@@ -35,2 +39,4 @@ | ||
this.settings = settings; | ||
settings.baseDirectory = path.normalize(settings.baseDirectory); | ||
settings.srcDirectory = path.normalize(settings.srcDirectory); | ||
} | ||
@@ -154,4 +160,4 @@ | ||
exports.ConfigLoader = ConfigLoader; | ||
ConfigLoader.DEFAULT_CONFIG_DIRECTORY = 'configuration'; | ||
ConfigLoader.DEFAULT_CONFIG_DIRECTORY = 'config'; | ||
ConfigLoader.DEFAULT_CONFIG_FILE = 'config.json'; | ||
ConfigLoader.DEFAULT_PARAMETERS_FILE = 'parameters.json'; |
@@ -28,6 +28,14 @@ declare module 'microframework/MicroFrameworkConfig' { | ||
/** | ||
* This must be a root of your application, where your package.json is located. | ||
* Need to pass a node's __dirname constant here, this let framework to know your base directory. | ||
* If your microframework bootstrap class is located in subdirectory (lets say "src" or "app"), then __dirname | ||
* variable in conclusion with relative path should be specified, like __dirname + "../". | ||
* This variable is going throw the process of normalization, so no worry of specifying relative paths. | ||
*/ | ||
baseDirectory: string; | ||
/** | ||
* Path to your source code. (usually "src" or "app"). | ||
*/ | ||
srcDirectory: string; | ||
/** | ||
* Current environment where framework is running right now. | ||
@@ -34,0 +42,0 @@ */ |
{ | ||
"name": "microframework", | ||
"version": "0.1.7", | ||
"version": "0.2.0", | ||
"description": "Micro framework is a bundle of express.js, mongodb ODM, validator, dependancy injection framework and restful controllers for your apps using Typescript", | ||
@@ -30,5 +30,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"configurator.ts": ">=0.0.6", | ||
"fs": "^0.0.2", | ||
"path": "^0.12.x", | ||
"configurator.ts": ">=0.0.6", | ||
"path": "^0.12.7", | ||
"typedi": ">=0.0.4" | ||
@@ -35,0 +35,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59252
1044
Updatedpath@^0.12.7