diff --git a/src/app/app.component.html b/src/app/app.component.html index 4c88d65..f5211f1 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -14,4 +14,5 @@
+Version: {{VERSION}} diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 1ec7c84..eeab833 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -3,6 +3,7 @@ import {ConverterRegistryService} from './converterregistry.service'; import {InputComponentManagerService} from './inputcomponentmanager.service'; import {Step} from './step'; import {Converter} from './converter/converter'; +import {environment} from '../environments/environment'; @Component({ selector: 'app-root', @@ -10,6 +11,7 @@ import {Converter} from './converter/converter'; styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit { + public readonly VERSION: string = environment.appVersion; public steps: Step[] = []; public converters: Converter[] = []; diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 3612073..d8516dc 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,3 +1,4 @@ export const environment = { - production: true + production: true, + appVersion: require('../../package.json').version }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 600fdaf..1e580fa 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -3,7 +3,8 @@ // The list of file replacements can be found in `angular.json`. export const environment = { - production: false + production: false, + appVersion: `${require('../../package.json').version} (development build)` }; /* diff --git a/src/tsconfig.app.json b/src/tsconfig.app.json index 190fd30..c27166e 100644 --- a/src/tsconfig.app.json +++ b/src/tsconfig.app.json @@ -2,7 +2,9 @@ "extends": "../tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", - "types": [] + "types": [ + "node" + ] }, "exclude": [ "test.ts",