forked from saitho/ts-appversion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: export 'name' and 'description' fields from package.json file
- update dist/index.js - update tests. Manage descrption as optional - update readme with new fields descrtiption
- Loading branch information
1 parent
fd11f1f
commit 5f6d793
Showing
6 changed files
with
190 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
import { Component } from '@angular/core'; | ||
import {environment} from "../environments/environment"; | ||
import { environment } from "../environments/environment"; | ||
|
||
import { TsAppVersion } from 'src/_versions'; | ||
import versions from 'src/_versions'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.css'] | ||
}) | ||
export class AppComponent { | ||
title = 'sample-app'; | ||
version = environment.version; | ||
public title: string = 'sample-app'; | ||
|
||
// form environment | ||
public version: string = environment.version; | ||
|
||
// from _version.ts directly | ||
public readonly tsAppVersion: TsAppVersion; | ||
|
||
/** | ||
* AppComponent ctor | ||
*/ | ||
constructor() { | ||
// you can refer direcly to 'versions' information in your component | ||
this.tsAppVersion = versions; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters