openmct/platform/framework/src/Constants.js
Victor Woeltjen 731c2b6c21 [Framework] Document extension ordering rules
Add a description of priority-ordering rules (implemented for WTD-590)
to framework documentation.
2015-01-07 17:18:39 -08:00

29 lines
665 B
JavaScript

/*global define*/
/**
* Constants used by the framework layer.
*/
define({
MODULE_NAME: "OpenMCTWeb",
BUNDLE_LISTING_FILE: "bundles.json",
BUNDLE_FILE: "bundle.json",
SEPARATOR: "/",
EXTENSION_SUFFIX: "[]",
DEFAULT_BUNDLE: {
"sources": "src",
"resources": "res",
"libraries": "lib",
"tests": "test",
"configuration": {},
"extensions": {}
},
PRIORITY_LEVELS: {
"fallback": Number.NEGATIVE_INFINITY,
"default": -100,
"none": 0,
"optional": 100,
"preferred": 1000,
"mandatory": Number.POSITIVE_INFINITY
},
DEFAULT_PRIORITY: 0
});