ferngully-aurelia-tools
Version:
Ferngully Tools for Aurelia
33 lines • 1.59 kB
JavaScript
System.register([], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var EnvironmentService;
return {
setters: [],
execute: function () {
EnvironmentService = (function () {
function EnvironmentService() {
this.environment = $("div#environment").attr("environment") || "development";
}
Object.defineProperty(EnvironmentService.prototype, "isDevelopment", {
get: function () { return ["development", "dev"].indexOf(this.environment.toLowerCase()) !== -1; },
enumerable: true,
configurable: true
});
Object.defineProperty(EnvironmentService.prototype, "isStaging", {
get: function () { return ["staging", "prerelease", "preprod", "preproduction"].indexOf(this.environment.toLowerCase()) !== -1; },
enumerable: true,
configurable: true
});
Object.defineProperty(EnvironmentService.prototype, "isProduction", {
get: function () { return ["production", "release"].indexOf(this.environment.toLowerCase()) !== -1; },
enumerable: true,
configurable: true
});
return EnvironmentService;
}());
exports_1("EnvironmentService", EnvironmentService);
}
};
});
//# sourceMappingURL=environment-service.js.map