angular/projects/ng-devtools/src/lib/application-environment.ts
AleksanderBodurri a7ea578507 feat(devtools): display latest commit SHA in application (rangle/angular-devtools#243)
* build: set latest SHA commit as system environment variable for chrome build

* build: set latest SHA commit as sys variable for demo build

* feat: create application environment abstraction to reference environment variables inside the ng-devtools library

* test: fix devtools component test
2020-04-02 16:23:03 -07:00

16 lines
252 B
TypeScript

export interface Process {
env: Env;
}
interface Env {
LATEST_SHA: string;
}
export interface Environment {
production: boolean;
process: Process;
}
export abstract class ApplicationEnvironment {
abstract get environment(): Environment;
}