interface GitOpts {
    gitTemplate?: string;
    enable?: boolean;
}

Properties

gitTemplate?: string

A string template that will be interpolated with git commit information to return as version string

Placeholders like {VAR} will be replaced. Available variables:

  • branch
  • hash
  • shortHash
'{branch}-{shortHash}'
enable?: boolean
true