UNPKG

silentjs

Version:
25 lines (18 loc) 605 B
// VENDOR LIBS var inherits = require('inherits'); var path = require('path'); var lodash = require('lodash'); // LIBS CORE var filesystem = require('lib-core/filesystem/filesystem'); // FRAMEWORK var Generic = require('silentjs/classes/generic'); var Configuration = function () { this.rootPath = process.env.NODE_PATH; this.frameworkPath = __dirname; }; inherits(Configuration, Generic); Configuration.prototype.initialize = function () { var configuration = this; lodash.extend(configuration, require(path.join(this.rootPath, 'silent'))); }; module.exports = new Configuration();