ferngully-aurelia-tools
Version:
Ferngully Tools for Aurelia
9 lines • 550 B
JavaScript
export class EnvironmentService {
constructor() {
this.environment = $("div#environment").attr("environment") || "development";
}
get isDevelopment() { return ["development", "dev"].indexOf(this.environment.toLowerCase()) !== -1; }
get isStaging() { return ["staging", "prerelease", "preprod", "preproduction"].indexOf(this.environment.toLowerCase()) !== -1; }
get isProduction() { return ["production", "release"].indexOf(this.environment.toLowerCase()) !== -1; }
}
//# sourceMappingURL=environment-service.js.map