BuildVersion
This service uses the project configuration settings in order manage the project version.
Constructor Summary
| Public Constructor | ||
| public |
constructor(events: Events, projectConfiguration: ProjectConfigurationSettings, versionUtils: VersionUtils) Class constructor. |
|
Member Summary
| Public Members | ||
| public |
A local reference for the |
|
| public |
All the project settings. |
|
| public |
A local reference for the |
|
Method Summary
| Public Methods | ||
| public |
createRevision(force: boolean): Promise<string, Error> Create the revision file. |
|
| public |
Get the name of the variable where the build engine should define the version. |
|
| public |
getVersion(): string Look for the project version first on the revision file, then on the environment variable and
finally fallbacks to |
|
Public Constructors
public constructor(events: Events, projectConfiguration: ProjectConfigurationSettings, versionUtils: VersionUtils) source
Class constructor.
Params:
| Name | Type | Attribute | Description |
| events | Events | To fire an event when the revision file is created. |
|
| projectConfiguration | ProjectConfigurationSettings | To read the |
|
| versionUtils | VersionUtils | To load the version and write the revision file. |
Public Members
Public Methods
public createRevision(force: boolean): Promise<string, Error> source
Create the revision file.
This method emits the revision-file-created event and sends the contents of the file as
a argument.
Params:
| Name | Type | Attribute | Description |
| force | boolean |
|
Force the service to create the file even if the feature is disabled. |
