UNPKG

@nx/docker

Version:

The Nx Plugin for Docker to aid in containerizing projects.

16 lines (15 loc) 610 B
/** * 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;