conflakes
Version:
Manager of the configuration, may be depending on the environment, with the ability to import another config files defined inside themselves.
13 lines • 472 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const yaml = require('js-yaml');
const _ = require('lodash');
var GlobalVariableType = new yaml.Type('tag:yaml.org,2002:js/var', {
kind: 'scalar',
construct: function (path) {
return _.clone(_.get(global, path));
},
});
var GlobalVariableSchema = yaml.Schema.create([GlobalVariableType]);
exports.default = GlobalVariableSchema;
//# sourceMappingURL=GlobalVariableType.js.map