1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1 1 1 9 1 9 9 1 9 1 1 | ///<reference path=".d.ts"/> "use strict"; var path = require("path"); var ConfigBase = (function () { function ConfigBase($fs) { this.$fs = $fs; } ConfigBase.prototype.loadConfig = function (name) { var configFileName = this.getConfigPath(name); return this.$fs.readJson(configFileName); }; ConfigBase.prototype.getConfigPath = function (filename) { return path.join(__dirname, "../../config/", filename + ".json"); }; return ConfigBase; })(); exports.ConfigBase = ConfigBase; |