Options
All
  • Public
  • Public/Protected
  • All
Menu

Class for managing the service version.

Hierarchy

  • VersionManager

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private info

info: Info

Info object for the service.

Accessors

Private version

  • get version(): string

Methods

Private inc

  • inc(release: "patch" | "minor" | "major"): string
  • Increment the version of the service by a release type.

    function

    inc

    memberof

    VersionManager

    example

    // 'minor' upgrade this.inc('minor'); // '1.0.2' // 'major' upgrade this.inc('major'); // '2.0.0'

    Parameters

    • release: "patch" | "minor" | "major"

      Semver upgrade type.

    Returns string

    The new version set.

major

  • major(): string

minor

  • minor(): string

patch

  • patch(): string

set

  • set(version: string): string
  • Set the version to a specific version.

    function

    set

    memberof

    VersionManager

    Parameters

    • version: string

      New version.

    Returns string

    New version.

Generated using TypeDoc