@nx/docker
Version:
16 lines (15 loc) • 610 B
TypeScript
/**
* Support Tokens in Version Patterns
* {projectName} - the name of the project
* {currentDate} - the current date in YY.MM.DD format
* {currentDate|DATE FORMAT} - the current date with custom format such as YYMM.DD
* {commitSha} - The full commit sha for the current commit
* {shortCommitSha} - The seven character commit sha for the current commit
*/
export interface PatternTokens {
projectName: string;
currentDate: Date;
commitSha: string;
shortCommitSha: string;
}
export declare function interpolateVersionPattern(versionPattern: string, data: Partial<PatternTokens>): string;